author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | |
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000) | ||
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | |
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000) | ||
commit | e188fa672bc2d8ab999971826c4d9f3b11bd8c8e | |
tree | a32dcbb0c8fdb879a19175007cf3c2189e896826 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4366b6cede7090e6851ae064a54398963c664b38 | commit | diff |
llvm-uselistorder: Fix memory leak from r214125
Turns out `parseBitcodeFile()` does *not* take ownership of the buffer.
This was already clear in the header docs, but I obviously didn't read
them (having noticed that it gets stored in a `unique_ptr<>`).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214313 91177308-0d34-0410-b5e6-96231b3b80d8
Turns out `parseBitcodeFile()` does *not* take ownership of the buffer.
This was already clear in the header docs, but I obviously didn't read
them (having noticed that it gets stored in a `unique_ptr<>`).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214313 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-uselistorder/llvm-uselistorder.cpp | diff | blob | history |