diff options
Diffstat (limited to 'target')
-rw-r--r-- | target/ppc/translate_init.c | 2 | ||||
-rw-r--r-- | target/s390x/cpu_models.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c index 808f6c1a08..85708fe3bb 100644 --- a/target/ppc/translate_init.c +++ b/target/ppc/translate_init.c @@ -8347,7 +8347,7 @@ static void getset_compat_deprecated(Object *obj, Visitor *v, const char *name, "use max-cpu-compat machine property instead"); } visit_type_null(v, name, &null, NULL); - QDECREF(null); + qobject_unref(null); } static const PropertyInfo ppc_compat_deprecated_propinfo = { diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c index 2741b6803f..e10035aaa8 100644 --- a/target/s390x/cpu_models.c +++ b/target/s390x/cpu_models.c @@ -551,7 +551,7 @@ static void cpu_info_from_model(CpuModelInfo *info, const S390CPUModel *model, } if (!qdict_size(qdict)) { - QDECREF(qdict); + qobject_unref(qdict); } else { info->props = QOBJECT(qdict); info->has_props = true; |