[llvm-dev] Memory leak on LLVM 4.0.1

Gil Barbosa via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 1 06:58:16 PDT 2017


I'm developing a frontend using LLVM 4.0.1 on Linux and noticed that LLVM
always leaks memory, even after shutdown: 56 bytes in 2 blocks, according
to valgrind.
I'm testing with this minimal program:

#include <llvm/Support/ManagedStatic.h>
int main() { llvm::llvm_shutdown(); return 0; }

Is there anything I'm missing to free the rest of the memory?


Gil Barbosa Reis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170901/4e58beef/attachment.html>

More information about the llvm-dev mailing list