| commit | f2bd650fdfdd99371bd7aaf2ca06730bbec5bc9f | [log] [tgz] |
|---|---|---|
| author | Nuno Lopes <nunoplopes@sapo.pt> | Wed Oct 15 12:04:36 2008 +0000 |
| committer | Nuno Lopes <nunoplopes@sapo.pt> | Wed Oct 15 12:04:36 2008 +0000 |
| tree | 605e8488b78120932450334170671890101ee1ab | |
| parent | f05ff66a220a31307300e9b1f7f8fa0823901f96 [diff] |
fix memleak in GetForwardRefForGlobal() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57576 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 54694d7..f2e6404 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y
@@ -140,6 +140,7 @@ GlobalValue *Ret = 0; if (I != GlobalRefs.end()) { Ret = I->second; + I->first.second.destroy(); GlobalRefs.erase(I); } return Ret;