diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-10-03 15:44:21 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-10-03 15:44:21 +0000 |
commit | 03ed0daeccf722920d2ee0a76eb399a487674f27 (patch) | |
tree | a79e05885d917efd10256146875d9439a469a8b4 /lib/AsmParser | |
parent | fea1ab793b8946330e5177432fdb4e9c6533451c (diff) | |
download | external_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.y | 1 |
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) { |