mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
fix memleak in GetForwardRefForGlobal()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f05ff66a22
commit
f2bd650fdf
@ -140,6 +140,7 @@ static struct PerModuleInfo {
|
||||
GlobalValue *Ret = 0;
|
||||
if (I != GlobalRefs.end()) {
|
||||
Ret = I->second;
|
||||
I->first.second.destroy();
|
||||
GlobalRefs.erase(I);
|
||||
}
|
||||
return Ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user