提交 f8ef393e 编写于 作者: P Peter Krempa

client: Free message when freeing client

The last message of the client was not freed leaking 4 bytes of memory
in the client when the remote daemon crashed while processing a message.
上级 54f9cf80
......@@ -499,6 +499,9 @@ void virNetClientFree(virNetClientPtr client)
#if HAVE_SASL
virNetSASLSessionFree(client->sasl);
#endif
virNetMessageClear(&client->msg);
virNetClientUnlock(client);
virMutexDestroy(&client->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册