From: Peter Krempa Date: Wed, 1 Dec 2021 08:05:35 +0000 (+0100) Subject: qemuDomainHotplugAddIOThread: Automatically free virJSONValue X-Git-Tag: v8.0.0-rc1~370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40a79d52b68b0f47a8b7a9c1ee729d00884255a2;p=thirdparty%2Flibvirt.git qemuDomainHotplugAddIOThread: Automatically free virJSONValue Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 6333d0af36..13e33a2289 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5233,7 +5233,7 @@ qemuDomainHotplugAddIOThread(virQEMUDriver *driver, int new_niothreads = 0; qemuMonitorIOThreadInfo **new_iothreads = NULL; virDomainIOThreadIDDef *iothrid; - virJSONValue *props = NULL; + g_autoptr(virJSONValue) props = NULL; bool threadAdded = false; bool objectAdded = false; @@ -5316,7 +5316,6 @@ qemuDomainHotplugAddIOThread(virQEMUDriver *driver, } virDomainAuditIOThread(vm, orig_niothreads, new_niothreads, "update", ret == 0); - virJSONValueFree(props); return ret; exit_monitor: