Hi Alexandre,
I tried removing -disable-free
from CLANG default commandline, but VALGRIND still reports leaks(quantitatively same as with -disable-free
passed):
Summary:
with -disable-free
==22725== Command: /home/trunk/build/release/bin/clang main.c -g
==22725==
==22725==
==22725== HEAP SUMMARY:
==22725== in use at exit: 251,896 bytes in 12 blocks
==22725== total heap usage: 3,754 allocs, 3,742 frees, 734,893 bytes allocated
==22725==
==22725== LEAK SUMMARY:
==22725== definitely lost: 67,584 bytes in 1 blocks
==22725== indirectly lost: 0 bytes in 0 blocks
==22725== possibly lost: 0 bytes in 0 blocks
==22725== still reachable: 184,312 bytes in 11 blocks
==22725== suppressed: 0 bytes in 0 blocks
==22725== Rerun with --leak-check=full to see details of leaked memory
==22725==
==22725== For counts of detected and suppressed errors, rerun with: -v
==22725== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
After removing -disable-free
==22506== Command: /home/trunk/build/release/bin/clang main.c -g
==22506==
==22506==
==22506== HEAP SUMMARY:
==22506== in use at exit: 251,896 bytes in 12 blocks
==22506== total heap usage: 3,754 allocs, 3,742 frees, 734,869 bytes allocated
==22506==
==22506== LEAK SUMMARY:
==22506== definitely lost: 67,584 bytes in 1 blocks
==22506== indirectly lost: 0 bytes in 0 blocks
==22506== possibly lost: 0 bytes in 0 blocks
==22506== still reachable: 184,312 bytes in 11 blocks
==22506== suppressed: 0 bytes in 0 blocks
==22506== Rerun with --leak-check=full to see details of leaked memory
==22506==
==22506== For counts of detected and suppressed errors, rerun with: -v
==22506== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Thanks,
Sourabh.