summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-03-31 16:28:56 +0200
committerJason Wang <jasowang@redhat.com>2016-04-06 09:52:07 +0800
commit044d65525f6ac2093042ae18dbf8c1300b5c1c18 (patch)
treeda47525f86ba790c20b9bb74a415a8213d0fdaef /net
parent74044c8ffc10c2cfd76f80c785c3f6a6f101a662 (diff)
downloadqemu-044d65525f6ac2093042ae18dbf8c1300b5c1c18.zip
net: fix OptsVisitor memory leak
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>
Diffstat (limited to 'net')
-rw-r--r--net/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index f8b1e00f37..0ad6217cb9 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;
}