fix memleak in FunctionHeaderH
authorNuno Lopes <nunoplopes@sapo.pt>
Fri, 3 Oct 2008 15:44:21 +0000 (15:44 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Fri, 3 Oct 2008 15:44:21 +0000 (15:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57005 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/llvmAsmParser.y

index f5d5c79a15ba041c4486a919a8b9f9d859f6e8f8..1a8458409b43116af902e8c04694bae4880f9a61 100644 (file)
@@ -2420,6 +2420,7 @@ FunctionHeaderH : OptCallingConv OptRetAttrs ResultTypes GlobalName '(' ArgList
     InsertValue(Fn, CurModule.Values);
   }
 
+  ID.destroy();
   CurFun.FunctionStart(Fn);
 
   if (CurFun.isDeclare) {