From: Kirill Shchetiniuk <[email protected]>

Signed-off-by: Kirill Shchetiniuk <[email protected]>
---
 src/qemu/qemu_driver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 16331d8f54..66ed7cdf2f 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -18900,7 +18900,7 @@ qemuDomainSetGuestVcpus(virDomainPtr dom,
 {
     virDomainObj *vm = NULL;
     g_autoptr(virBitmap) map = NULL;
-    qemuAgentCPUInfo *info = NULL;
+    g_autofree qemuAgentCPUInfo *info = NULL;
     qemuAgent *agent;
     int ninfo = 0;
     size_t i;
@@ -18970,7 +18970,6 @@ qemuDomainSetGuestVcpus(virDomainPtr dom,
     virDomainObjEndAgentJob(vm);
 
  cleanup:
-    VIR_FREE(info);
     virDomainObjEndAPI(&vm);
     return ret;
 }
-- 
2.49.0

Reply via email to