mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-20 10:42:36 +00:00
Leak fix: delete old objects before reallocation in an assignment operator!
llvm-svn: 7055
This commit is contained in:
parent
293af7edb6
commit
e133e7d852
@ -190,6 +190,8 @@ public:
|
||||
}
|
||||
|
||||
const MachineOperand &operator=(const MachineOperand &MO) {
|
||||
if (isExternalSymbol()) // if old operand had a symbol name,
|
||||
delete SymbolName; // release old memory
|
||||
immedVal = MO.immedVal;
|
||||
flags = MO.flags;
|
||||
opType = MO.opType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user