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>
This commit is contained in:
Paolo Bonzini 2016-03-31 16:28:56 +02:00 committed by Jason Wang
parent 74044c8ffc
commit 044d65525f

View File

@ -1077,6 +1077,7 @@ int net_client_init(QemuOpts *opts, int is_netdev, Error **errp)
} }
error_propagate(errp, err); error_propagate(errp, err);
opts_visitor_cleanup(ov);
return ret; return ret;
} }