mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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