Skip to content

Commit

Permalink
net: fix OptsVisitor memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and jasowang committed Apr 6, 2016
1 parent 74044c8 commit 044d655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/net.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 044d655

Please sign in to comment.