[llvm-dev] Possible Memory leak while compiling.

Tomar, Sourabh Singh via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 23 05:42:40 PST 2020


When compiling a .ll file as:
$ valgrind clang main.ll

I noticed lot of memory leaks:
==18396== HEAP SUMMARY:
==18396==     in use at exit: 647,329 bytes in 619 blocks
==18396==   total heap usage: 6,754 allocs, 6,135 frees, 1,571,191 bytes allocated
==18396==
==18396== LEAK SUMMARY:
==18396==    definitely lost: 69,392 bytes in 4 blocks
==18396==    indirectly lost: 374,050 bytes in 595 blocks
==18396==      possibly lost: 12,207 bytes in 8 blocks
==18396==    still reachable: 191,680 bytes in 12 blocks
==18396==         suppressed: 0 bytes in 0 blocks

Is this okay ? or Known issue ?

Thanks,
Sourabh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201123/7bf2418e/attachment.html>


More information about the llvm-dev mailing list