mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: Fix memleak after commit 59898a88ce8431bd3ea249b8789edc2ef9985827
If the ABI compatibility check with the "migratable" user XML is successful, we would leak the originally parsed XML from the user that would not be used in this case. Reported by Ján Tomko.
This commit is contained in:
parent
2e23c77b00
commit
044e3e7524
@ -5274,6 +5274,8 @@ qemuDomainSaveImageOpen(virQEMUDriverPtr driver,
|
||||
/* use the user provided XML */
|
||||
newdef = def2;
|
||||
def2 = NULL;
|
||||
} else {
|
||||
virDomainDefFree(def2);
|
||||
}
|
||||
|
||||
virDomainDefFree(def);
|
||||
|
Loading…
x
Reference in New Issue
Block a user