summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit4d76a21bc71fbba5e868036dd0d07f0b991d96a4 (patch)
tree3c12f49b3a07fe28f1b4e11288c504e473d643f0 /llvm/lib/Support/CommandLine.cpp
parent78bfe2b12ee1d0665a39c2ada1fad367fad8faed (diff)
downloadbcm5719-llvm-4d76a21bc71fbba5e868036dd0d07f0b991d96a4.tar.gz
bcm5719-llvm-4d76a21bc71fbba5e868036dd0d07f0b991d96a4.zip
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. llvm-svn: 187039
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud