mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
lxc: fix rpc event leak on error path in virLXCControllerEventSend
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
8fafbf630f
commit
666dcb1aa2
@ -2253,7 +2253,8 @@ virLXCControllerEventSend(virLXCControllerPtr ctrl,
|
||||
goto error;
|
||||
|
||||
VIR_DEBUG("Queue event %d %zu", procnr, msg->bufferLength);
|
||||
virNetServerClientSendMessage(ctrl->client, msg);
|
||||
if (virNetServerClientSendMessage(ctrl->client, msg) < 0)
|
||||
goto error;
|
||||
|
||||
xdr_free(proc, data);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user