提交 666dcb1a 编写于 作者: N Nikolay Shirokovskiy 提交者: Daniel P. Berrangé

lxc: fix rpc event leak on error path in virLXCControllerEventSend

Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
上级 8fafbf63
...@@ -2253,7 +2253,8 @@ virLXCControllerEventSend(virLXCControllerPtr ctrl, ...@@ -2253,7 +2253,8 @@ virLXCControllerEventSend(virLXCControllerPtr ctrl,
goto error; goto error;
VIR_DEBUG("Queue event %d %zu", procnr, msg->bufferLength); 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); xdr_free(proc, data);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册