mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
admin: fix memory leak of typed parameters getting client info
In the error code path, the temporary parameters are not freed. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
2f163204ff
commit
c76dc0ea39
@ -310,6 +310,8 @@ adminClientGetInfo(virNetServerClientPtr client,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
if (tmpparams)
|
||||
virTypedParamsFree(tmpparams, *nparams);
|
||||
virObjectUnref(identity);
|
||||
VIR_FREE(sock_addr);
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user