[PATCH v2 3/8] qemu_capabilities.c: del 'nodes' var from virQEMUCapsLoadCache()

Daniel Henrique Barboza danielhb413 at gmail.com
Fri Nov 19 12:48:25 UTC 2021


The 'nodes' var is not being used.

Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
---
 src/qemu/qemu_capabilities.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 38558a9ee0..2523a369d4 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -4240,7 +4240,6 @@ virQEMUCapsLoadCache(virArch hostArch,
 {
     g_autoptr(xmlDoc) doc = NULL;
     int ret = -1;
-    xmlNodePtr *nodes = NULL;
     g_autoptr(xmlXPathContext) ctxt = NULL;
     char *str = NULL;
     long long int l;
@@ -4388,7 +4387,6 @@ virQEMUCapsLoadCache(virArch hostArch,
     ret = 0;
  cleanup:
     VIR_FREE(str);
-    VIR_FREE(nodes);
     return ret;
 }
 
-- 
2.31.1




More information about the libvir-list mailing list