From 86eea13bdb88970af48ecbed76269bafc0e8ac86 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 28 Jul 2015 20:51:53 +0000 Subject: [PATCH] [RuntimeDyld] Remove a memory-leak that was introduced in r243456. Thanks to Ben 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-rtdyld/llvm-rtdyld.cpp b/tools/llvm-rtdyld/llvm-rtdyld.cpp index 51d68bf3040..d6423a3e693 100644 --- a/tools/llvm-rtdyld/llvm-rtdyld.cpp +++ b/tools/llvm-rtdyld/llvm-rtdyld.cpp @@ -277,7 +277,7 @@ static int printLineInfoForInput(bool LoadObjects, bool UseDebugObj) { if (UseDebugObj) { DebugObj = LoadedObjInfo->getObjectForDebug(Obj); SymbolObj = DebugObj.getBinary(); - LoadedObjInfo.release(); + LoadedObjInfo.reset(); } }