Skip to content

Leaks with very first example using MLX42 #139

Answered by W2Wizard
MiguelViHe asked this question in Q&A
Discussion options

You must be logged in to vote

People like to argue if these things still count as leaks or not but I follow what Valgrind says.

5.2. | With Memcheck's memory leak detector, what's the difference between "definitely lost", "indirectly lost", "possibly lost", "still reachable", and "suppressed"?


The details are in the Memcheck section of the user manual. In short: "definitely lost" means your program is leaking memory -- fix those leaks!"indirectly lost" means your program is leaking memory in a pointer-based structure. (E.g. if the root node of a binary tree is "definitely lost", all the children will be "indirectly lost".)

If you fix the "definitely lost" leaks, the "indirectly lost" leaks should go away.

"possibl…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MiguelViHe
Comment options

@W2Wizard
Comment options

Answer selected by MiguelViHe
@MiguelViHe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants