diff mbox

[PULL,3/5] net: fix OptsVisitor memory leak

Message ID 1459910280-5101-4-git-send-email-jasowang@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jason Wang April 6, 2016, 2:37 a.m. UTC
From: Paolo Bonzini <pbonzini@redhat.com>

Fixes 96a1616("qapi-dealloc: Reduce use outside of generated code")
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 net/net.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/net/net.c b/net/net.c
index f8b1e00..0ad6217 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1077,6 +1077,7 @@  int net_client_init(QemuOpts *opts, int is_netdev, Error **errp)
     }
 
     error_propagate(errp, err);
+    opts_visitor_cleanup(ov);
     return ret;
 }