[RuntimeDyld] Remove a memory-leak that was introduced in r243456. Thanks to Ben
authorLang Hames <lhames@gmail.com>
Tue, 28 Jul 2015 20:51:53 +0000 (20:51 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 28 Jul 2015 20:51:53 +0000 (20:51 +0000)
Kramer for catching this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243476 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-rtdyld/llvm-rtdyld.cpp

index 51d68bf3040741044c6d4232d046e3b4cb9a457e..d6423a3e693c21660f102797ed8e8562a020c7d5 100644 (file)
@@ -277,7 +277,7 @@ static int printLineInfoForInput(bool LoadObjects, bool UseDebugObj) {
       if (UseDebugObj) {
         DebugObj = LoadedObjInfo->getObjectForDebug(Obj);
         SymbolObj = DebugObj.getBinary();
-        LoadedObjInfo.release();
+        LoadedObjInfo.reset();
       }
     }