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:
Peter Krempa 2012-08-03 16:50:16 +02:00
parent 54f9cf803d
commit f8ef393ee3

View File

@ -499,6 +499,9 @@ void virNetClientFree(virNetClientPtr client)
#if HAVE_SASL
virNetSASLSessionFree(client->sasl);
#endif
virNetMessageClear(&client->msg);
virNetClientUnlock(client);
virMutexDestroy(&client->lock);