mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
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.
This commit is contained in:
parent
54f9cf803d
commit
f8ef393ee3
@ -499,6 +499,9 @@ void virNetClientFree(virNetClientPtr client)
|
||||
#if HAVE_SASL
|
||||
virNetSASLSessionFree(client->sasl);
|
||||
#endif
|
||||
|
||||
virNetMessageClear(&client->msg);
|
||||
|
||||
virNetClientUnlock(client);
|
||||
virMutexDestroy(&client->lock);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user