mirror of https://gitee.com/openkylin/libvirt.git
daemon: plug memory leak
Leak introduced in commit bb2eddc6
.
* daemon/remote.c (remoteDispatchAuthPolkit): Also free pkout on
success.
This commit is contained in:
parent
df81004632
commit
d2728cc245
|
@ -2536,6 +2536,7 @@ remoteDispatchAuthPolkit(virNetServerPtr server ATTRIBUTE_UNUSED,
|
|||
virNetServerClientSetIdentity(client, ident);
|
||||
virMutexUnlock(&priv->lock);
|
||||
virCommandFree(cmd);
|
||||
VIR_FREE(pkout);
|
||||
VIR_FREE(ident);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue