mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: plug memory leak on migration
Detected by Coverity. Leak introduced in commit 72de0d2. * src/qemu/qemu_migration.c (qemuMigrationCookieGraphicsXMLParse): Clean up on success.
This commit is contained in:
parent
5fa3d775a9
commit
16e7b5fa24
@ -468,6 +468,7 @@ qemuMigrationCookieGraphicsXMLParse(xmlXPathContextPtr ctxt)
|
|||||||
VIR_FREE(tmp);
|
VIR_FREE(tmp);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
VIR_FREE(tmp);
|
||||||
if (virXPathInt("string(./graphics/@port)", ctxt, &grap->port) < 0) {
|
if (virXPathInt("string(./graphics/@port)", ctxt, &grap->port) < 0) {
|
||||||
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
"%s", _("missing port attribute in migration data"));
|
"%s", _("missing port attribute in migration data"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user