10

Okay, friends. I have a challenge. Who can make the sneakiest memory leak example? I need to stump a class of students with something only valgrind can find and I'm having a hard time.

Comments
  • 0
    Well, language? Any special framework in use? Working with pictures is a good one most of the time. Calling some unmanaged code and forgetting to free the memory buffer.
    Big pictures will sink the ship after a few iterations. Depending on what and how of course
  • 3
    This. Still unsolved 🙄

    https://github.com/processing/...
  • 0
    Best thing would be to use a nested struct and do some #pragma pack padding with pointer arithmetic
  • 0
    Ask valgrind them
  • 0
    do something iteratively and leak a single byte every loop from a called function called by a function called by the loop?
Add Comment