]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
a fix for cpu_x86_create
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 8 Jul 2013 10:41:58 +0000 (11:41 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 12 Jul 2013 16:09:46 +0000 (17:09 +0100)
target-i386/helper.c

index b9e10fb9e5d912c239ba7fc379c102057de85912..b782fa0858c13565ce32e48aaed6d69ca72f202d 100644 (file)
@@ -1250,7 +1250,9 @@ X86CPU *cpu_x86_create(const char *cpu_model, DeviceState *icc_bridge,
 #ifndef CONFIG_USER_ONLY
     if (icc_bridge == NULL) {
         error_setg(errp, "Invalid icc-bridge value");
-        goto out;
+        object_delete(OBJECT(cpu));
+        return NULL;
+        // goto out;
     }
     qdev_set_parent_bus(DEVICE(cpu), qdev_get_child_bus(icc_bridge, "icc"));
     object_unref(OBJECT(cpu));