diff options
-rw-r--r-- | util/qemu-config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/qemu-config.c b/util/qemu-config.c index 84ee6dc..7db810f 100644 --- a/util/qemu-config.c +++ b/util/qemu-config.c @@ -417,12 +417,12 @@ static int qemu_config_foreach(FILE *fp, QEMUConfigCB *cb, void *opaque, return res; } res = count; -out: if (qdict) { cb(group, qdict, opaque, errp); - qobject_unref(qdict); } +out: loc_pop(&loc); + qobject_unref(qdict); return res; } |