aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-10-03 15:44:21 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-10-03 15:44:21 +0000
commit03ed0daeccf722920d2ee0a76eb399a487674f27 (patch)
treea79e05885d917efd10256146875d9439a469a8b4 /lib/AsmParser
parentfea1ab793b8946330e5177432fdb4e9c6533451c (diff)
downloadexternal_llvm-03ed0daeccf722920d2ee0a76eb399a487674f27.zip
external_llvm-03ed0daeccf722920d2ee0a76eb399a487674f27.tar.gz
external_llvm-03ed0daeccf722920d2ee0a76eb399a487674f27.tar.bz2
fix memleak in FunctionHeaderH
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/llvmAsmParser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index f5d5c79..1a84584 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -2420,6 +2420,7 @@ FunctionHeaderH : OptCallingConv OptRetAttrs ResultTypes GlobalName '(' ArgList
InsertValue(Fn, CurModule.Values);
}
+ ID.destroy();
CurFun.FunctionStart(Fn);
if (CurFun.isDeclare) {