From: Kothapally Madhu Pavan Date: Sun, 8 Oct 2017 09:24:53 +0000 (+0530) Subject: qemu: Remove redundant code in qemuParseCommandLineDisk X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9020c7d7e4421e7a4dd8bd64d0f4cb51672d2f6b;p=libvirt.git qemu: Remove redundant code in qemuParseCommandLineDisk Signed-off-by: Kothapally Madhu Pavan --- diff --git a/src/qemu/qemu_parse_command.c b/src/qemu/qemu_parse_command.c index 37e1149c08..7c409b03a9 100644 --- a/src/qemu/qemu_parse_command.c +++ b/src/qemu/qemu_parse_command.c @@ -945,9 +945,7 @@ qemuParseCommandLineDisk(virDomainXMLOptionPtr xmlopt, if (virDomainDiskDefAssignAddress(xmlopt, def, dom) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, _("invalid device name '%s'"), def->dst); - virDomainDiskDefFree(def); - def = NULL; - goto cleanup; + goto error; } cleanup: