My question today is about running a program compiled with PureBasic with valgrind to check if the program as memory leaks among other problems.
Apparently I have some memory leaks somewhere in the program but I don't know how to find and correct them. When run valgrind with --leak-check=full I got many leaks coming from the external libraries I'm using, for example :==25059== HEAP SUMMARY:
==25059== in use at exit: 4,272,043 bytes in 58,826 blocks
==25059== total heap usage: 981,301 allocs, 922,475 frees, 227,836,882 bytes allocated
==25059==
==25059== LEAK SUMMARY:
==25059== definitely lost: 29,952 bytes in 37 blocks
==25059== indirectly lost: 72,089 bytes in 2,958 blocks
==25059== possibly lost: 5,615 bytes in 54 blocks
==25059== still reachable: 3,929,187 bytes in 53,674 blocks
==25059== of which reachable via heuristic:
==25059== length64 : 6,104 bytes in 18 blocks
==25059== suppressed: 0 bytes in 0 blocks
==25059== Rerun with --leak-check=full to see details of leaked memory
==25059==
==25059== For lists of detected and suppressed errors, rerun with: -s
==25059== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Is this kind of problems I should worry about ?==25220== at 0x484582F: realloc (vg_replace_malloc.c:1437)
==25220== by 0x5ABF4D8: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0)
==25220== by 0x5ABFC60: ??? (in /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0)
==25220== by 0x52B0523: ??? (in /usr/lib/x86_64-linux-gnu/libcairo.so.2.11600.0)
==25220== by 0x5182A48: ??? (in /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.5000.12)
==25220== by 0x5A90EFD: ??? (in /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.5000.12)
==25220== by 0x51AA802: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5000.12)
==25220== by 0x51BA83D: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5000.12)
==25220== by 0x51BCEFD: ??? (in /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5000.12)
==25220== by 0x4B467A3: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2406.32)
==25220== by 0x4A7D5E0: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2406.32)
==25220== by 0x4A82177: ??? (in /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2406.32)
Thanks in advance.
StarBootics