mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
goto error;
|
||||
}
|
||||
VIR_FREE(tmp);
|
||||
if (virXPathInt("string(./graphics/@port)", ctxt, &grap->port) < 0) {
|
||||
qemuReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
"%s", _("missing port attribute in migration data"));
|
||||
|
|
Loading…
Reference in New Issue