]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemudDomainCreate: correct a slightly misdirected goto
authorJim Meyering <meyering@redhat.com>
Tue, 27 Apr 2010 20:16:02 +0000 (22:16 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 29 Apr 2010 09:16:03 +0000 (11:16 +0200)
* src/qemu/qemu_driver.c (qemudDomainCreate): Goto cleanup,
not "endjob", since we know "vm" is already NULL.  No semantic change.

src/qemu/qemu_driver.c

index 326cb584ae3d90af8a1d04bbacce569355588948..cbd6b67c5e43d42f4914f8dda9c5905d93edb1af 100644 (file)
@@ -4047,7 +4047,7 @@ static virDomainPtr qemudDomainCreate(virConnectPtr conn, const char *xml,
             virDomainRemoveInactive(&driver->domains,
                                     vm);
         vm = NULL;
-        goto endjob;
+        goto cleanup;
     }
 
     event = virDomainEventNewFromObj(vm,