aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-24 14:00:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-24 14:00:26 +0000
commit797684279172bd56d08d4cefb76b1a9f9a4aabe6 (patch)
tree4f5744edc9e84ca02e9a35864567ff9f462403b5 /lib/Support/CommandLine.cpp
parent36f5ac198f8f1f6057c8b8893441a326fc7d148c (diff)
downloadexternal_llvm-797684279172bd56d08d4cefb76b1a9f9a4aabe6.zip
external_llvm-797684279172bd56d08d4cefb76b1a9f9a4aabe6.tar.gz
external_llvm-797684279172bd56d08d4cefb76b1a9f9a4aabe6.tar.bz2
Delete the buffer in createObjectFile if it fails.
The Binary constructor takes ownership of the memory buffer. This is a fairly unfortunate interface, but for now make createObjectFile consistent with it by also deleting the buffer if it fails. Fixes a leak in llvm-ar found by the valgrind bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions