]> git.proxmox.com Git - qemu.git/blobdiff - qobject/qjson.c
qom: Fix memory leak in object_property_set_link()
[qemu.git] / qobject / qjson.c
index 19085a1bb7fecfb8a90315884e2e1efce0433f63..6cf2511580eec5aa5122f0c2684111b5dc0d24bb 100644 (file)
@@ -260,6 +260,8 @@ static void to_json(const QObject *obj, QString *str, int pretty, int indent)
         /* XXX: should QError be emitted? */
     case QTYPE_NONE:
         break;
+    case QTYPE_MAX:
+        abort();
     }
 }