I've been using the C Phidget API in one of my project, and while I was fixing the memory leaks using Valgrind, I noticed some "definitely lost" and "still reachable" blocks comming from the Phidget functions. I then ran Valgrind on the (slightly modified) ifkit.c in the examples folder, and noticed that I still had this lost and still reachable blocks.
Should I call some clean up function? Or am I doing something wrong?
I attached the ifkit.c modified example that I used as well as the valigrind log.
Thank you in advance,
- (3.5 KiB) Downloaded 162 times
- (9.34 KiB) Downloaded 173 times