llvm-mirror/tools
David Blaikie 19fb98da55 PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile
This starts in MCJIT::getSymbolAddress where the
unique_ptr<object::Binary> is release()d and (after a cast) passed to a
single caller, MCJIT::addObjectFile.

addObjectFile calls RuntimeDyld::loadObject.
RuntimeDld::loadObject calls RuntimeDyldELF::createObjectFromFile

And the pointer is never owned at this point. I say this point, because
the alternative codepath, RuntimeDyldMachO::createObjectFile certainly
does take ownership, so this seemed like a good hint that this was a/the
right place to take ownership.

llvm-svn: 207580
2014-04-29 21:52:46 +00:00
..
bugpoint [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
bugpoint-passes [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 08:27:28 +00:00
gold Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
llc [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
lli PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile 2014-04-29 21:52:46 +00:00
llvm-ar [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-as [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-bcanalyzer [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-c-test Convert getFileOffset to getOffset and move it to its only user. 2014-04-21 13:45:32 +00:00
llvm-config Change llvm-config --ldflags to report ${CMAKE_CXX_LINK_FLAGS} 2014-04-25 01:44:20 +00:00
llvm-cov llvm-cov: Add support for gcov's --long-file-names option 2014-04-23 21:44:55 +00:00
llvm-diff [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
llvm-dis [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-dwarfdump [DWARF parser] Turn DILineInfo into a struct. 2014-04-18 21:36:39 +00:00
llvm-extract [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-jitlistener Support: split object format out of environment 2014-03-06 20:47:11 +00:00
llvm-link [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-lto Add an -mattr option to the gold plugin to support subtarget features in LTO 2014-04-25 21:46:51 +00:00
llvm-mc [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-mcmarkup Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
llvm-nm Revert "Fix a nomenclature error in llvm-nm." 2014-04-03 00:19:35 +00:00
llvm-objdump [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-profdata [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-readobj [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
llvm-rtdyld [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-shlib Add patch level to llvm version in CMake and Autoconf 2014-03-03 15:22:00 +00:00
llvm-size [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-stress [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
llvm-symbolizer [C++] Use 'nullptr'. Tools edition. 2014-04-25 04:24:47 +00:00
lto Add an -mattr option to the gold plugin to support subtarget features in LTO 2014-04-25 21:46:51 +00:00
macho-dump Darwin: Add assembler directives to create version-min load commands. 2014-03-18 22:09:05 +00:00
msbuild VS integration installer: set SUCCESS=1 if we find VS 2013 2014-03-24 17:33:22 +00:00
obj2yaml Object: Output .file symbols properly 2014-03-20 06:29:02 +00:00
opt SCC: Change clients to use const, NFC 2014-04-25 18:24:50 +00:00
yaml2obj [yaml2obj][ELF] ELF Relocations Support. 2014-04-11 04:13:39 +00:00
CMakeLists.txt static link polly into tools 2014-03-14 04:04:14 +00:00
LLVMBuild.txt PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00
Makefile PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00