llvm-6502/include/llvm/ExecutionEngine
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
..
ExecutionEngine.h PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile 2014-04-29 21:52:46 +00:00
GenericValue.h Add support for vector data types in the LLVM interpreter. 2013-04-01 15:53:30 +00:00
Interpreter.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
JIT.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
JITEventListener.h [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
JITMemoryManager.h Remove exception handling support from the old JIT. 2013-05-07 20:53:59 +00:00
MCJIT.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
ObjectBuffer.h Untabify. 2014-03-16 23:58:43 +00:00
ObjectCache.h [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
ObjectImage.h Object: iterator_range accessors for ObjectImage symbols and sections. 2014-04-21 18:10:26 +00:00
OProfileWrapper.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
RTDyldMemoryManager.h [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
RuntimeDyld.h PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile 2014-04-29 21:52:46 +00:00
SectionMemoryManager.h [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00