]> git.proxmox.com Git - mirror_qemu.git/blobdiff - numa.c
opts-visitor: Favor new visit_free() function
[mirror_qemu.git] / numa.c
diff --git a/numa.c b/numa.c
index 572712ccf990ca7ec08e5d396e792f1c3c548179..cbae430e3644afabb2d4e65ca3688fb0fb603dd6 100644 (file)
--- a/numa.c
+++ b/numa.c
@@ -217,9 +217,9 @@ static int parse_numa(void *opaque, QemuOpts *opts, Error **errp)
     Error *err = NULL;
 
     {
-        OptsVisitor *ov = opts_visitor_new(opts);
-        visit_type_NumaOptions(opts_get_visitor(ov), NULL, &object, &err);
-        opts_visitor_cleanup(ov);
+        Visitor *v = opts_visitor_new(opts);
+        visit_type_NumaOptions(v, NULL, &object, &err);
+        visit_free(v);
     }
 
     if (err) {