]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Remove redundant code in qemuParseCommandLineDisk
authorKothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
Sun, 8 Oct 2017 09:24:53 +0000 (14:54 +0530)
committerJán Tomko <jtomko@redhat.com>
Tue, 10 Oct 2017 06:36:22 +0000 (08:36 +0200)
Signed-off-by: Kothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
src/qemu/qemu_parse_command.c

index 37e1149c08211d39dab50e6ce2f66ebe7b61ac5b..7c409b03a9ab48c6a46bdfbc791979eb6c2aae39 100644 (file)
@@ -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: