I have encountered "still reachable" and "possibly lost" leaks in valgrind from a lot of library code (OSX), but I haven't seen anything within a program that I have written that has that. For example, the following produces a "definitely lost" leak:
#include <stdlib.h>
int main(void)
{
malloc(10)
return 0;
}
What would be a code example of a still-reachable
leak or a possibly-lost
leak?