Coder Social home page Coder Social logo

compsys-e2023-pub's Introduction

compsys-e2023-pub's People

Contributors

patchofscotland avatar finnschiermer avatar kirkedal avatar larspeterjeppesen avatar jakob22r avatar kbobkpop avatar ennak-alt avatar christosfranco avatar lukebomber avatar vonutne avatar

Stargazers

 avatar Oliver Sørensen avatar  avatar  avatar  avatar Christian Jordan avatar  avatar  avatar Omar Ali avatar Tobias Hoffmann avatar  avatar  avatar  avatar Toby avatar  avatar Hjalte bjoernstrup avatar  avatar Atta avatar  avatar  avatar  avatar Róar Mørkøre Hansen avatar Mark Brandt avatar  avatar  avatar Theis Baasch avatar Leo Rønsholt Mikkelsen avatar Christian Nielsen avatar  avatar Alexander Watts avatar Simon Winther avatar Tarik Yorulmaz avatar William Shi avatar  avatar mads jerup avatar  avatar Jacob Siegumfeldt avatar

Watchers

 avatar  avatar

compsys-e2023-pub's Issues

Calc reference solution: Bad free() practice?

I was working on an old exercise "calc" (from "c dynamic memory").
The reference solution has a single line to free the stack. However, we could end up with orphaned stack nodes and no reference to them. Causing memory leaks, right? I can understand that the actual implementation of calc might never get into this situation, but is it not better to (like in list.c) run through your stack and making sure that everything is freed? From the point of view of the stack implementer we dont know that the stack WILL be empty before we are asked to "drop" it.

https://github.com/diku-compSys/compSys-e2023-pub/blob/989d28437ee62c823baf64801e1b830f16df1dab/lectures/23-09-20_c_dynamic_memory/calc_solution/stack.c#L21C1-L23C2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.