diff --git a/qemu/qom/object.c b/qemu/qom/object.c index 4a3152cc..48573982 100644 --- a/qemu/qom/object.c +++ b/qemu/qom/object.c @@ -1001,7 +1001,7 @@ char *object_property_get_str(struct uc_struct *uc, Object *obj, const char *nam retval = g_strdup(qstring_get_str(qstring)); } - QDECREF(qstring); + qobject_decref(ret); return retval; }