llvm-uselistorder: Fix memory leak from r214125
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 30 Jul 2014 16:50:22 +0000 (16:50 +0000)
commite188fa672bc2d8ab999971826c4d9f3b11bd8c8e
treea32dcbb0c8fdb879a19175007cf3c2189e896826
parent4366b6cede7090e6851ae064a54398963c664b38
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
tools/llvm-uselistorder/llvm-uselistorder.cpp