diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-24 14:00:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-24 14:00:26 +0000 |
commit | 4d76a21bc71fbba5e868036dd0d07f0b991d96a4 (patch) | |
tree | 3c12f49b3a07fe28f1b4e11288c504e473d643f0 /llvm/lib/Support/CommandLine.cpp | |
parent | 78bfe2b12ee1d0665a39c2ada1fad367fad8faed (diff) | |
download | bcm5719-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