[llvm] r243476 - [RuntimeDyld] Remove a memory-leak that was introduced in r243456. Thanks to Ben
Lang Hames
lhames at gmail.com
Tue Jul 28 13:51:53 PDT 2015
Author: lhames
Date: Tue Jul 28 15:51:53 2015
New Revision: 243476
URL: http://llvm.org/viewvc/llvm-project?rev=243476&view=rev
Log:
[RuntimeDyld] Remove a memory-leak that was introduced in r243456. Thanks to Ben
Kramer for catching this.
Modified:
llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
Modified: llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp?rev=243476&r1=243475&r2=243476&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp (original)
+++ llvm/trunk/tools/llvm-rtdyld/llvm-rtdyld.cpp Tue Jul 28 15:51:53 2015
@@ -277,7 +277,7 @@ static int printLineInfoForInput(bool Lo
if (UseDebugObj) {
DebugObj = LoadedObjInfo->getObjectForDebug(Obj);
SymbolObj = DebugObj.getBinary();
- LoadedObjInfo.release();
+ LoadedObjInfo.reset();
}
}
More information about the llvm-commits
mailing list