10

Sooooo I learn c. Programmed antivirus project last night, and there is 13, 374 bytes of memory leak. (BTW the program crashes at return 0). *Rage and despair*

Comments
  • 0
    How about if you compile it without stripping debugging symbols? Wasn't valgrind able to show you the lines where the leaks happened?

    And how about compiling it with address sanitization? That could point to some pointer magic losses.
  • 0
    @Aldar I am using drmemory... Should I use something else?
  • 0
    @EladMatia I can only recommend Valgrind, used it at school, it has a pretty similar output to this, and can only recommend it.
    Or find out if your mem debugger supports linking it further, to show you at least which function leaked.
  • 0
    Bug will get inside if you leave windows open, not Linux...😎
Add Comment