llvm-6502/lib
David Blaikie 00121bb932 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207580 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-29 21:52:46 +00:00
..
Analysis blockfreq: Defer to BranchProbability::scale() 2014-04-29 16:20:05 +00:00
AsmParser Add 'musttail' marker to call instructions 2014-04-24 20:14:34 +00:00
Bitcode [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
CodeGen DwarfDebug: Split the initialization of abstract and non-abstract subprogram DIEs. 2014-04-29 15:58:35 +00:00
DebugInfo [DWARF parser] Cleanup code in DWARFDebugLine. 2014-04-29 21:28:13 +00:00
ExecutionEngine PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile 2014-04-29 21:52:46 +00:00
IR [PM] Add pass run listeners to the pass manager. 2014-04-28 18:19:25 +00:00
IRReader [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LineEditor [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Linker [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +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
MC Parse and create GOT_PREL relocations. 2014-04-29 13:42:02 +00:00
Object [yaml2obj][ELF] Remove unnecessary space between namespace name and 2014-04-23 17:30:29 +00:00
Option Protect the ArgList dtor 2014-04-20 23:59:00 +00:00
ProfileData [C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. 2014-04-29 07:58:41 +00:00
Support BranchProb: Simplify printing code 2014-04-29 17:07:42 +00:00
TableGen [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
Target Add Simple return instruction to Mips fast-isel 2014-04-29 17:57:50 +00:00
Transforms Remove tabs. 2014-04-29 21:02:37 +00:00
CMakeLists.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
LLVMBuild.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
Makefile ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00