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 eb4e9c1c39..16331d8f54 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -18853,7 +18853,7 @@ qemuDomainGetGuestVcpus(virDomainPtr dom,
 {
     virDomainObj *vm = NULL;
     qemuAgent *agent;
-    qemuAgentCPUInfo *info = NULL;
+    g_autofree qemuAgentCPUInfo *info = NULL;
     int ninfo = 0;
     int ret = -1;
 
@@ -18887,7 +18887,6 @@ qemuDomainGetGuestVcpus(virDomainPtr dom,
     virDomainObjEndAgentJob(vm);
 
  cleanup:
-    VIR_FREE(info);
     virDomainObjEndAPI(&vm);
     return ret;
 }
-- 
2.49.0

Reply via email to