[Spice-devel] [PATCH spice 1/5] red_channel: Fix msg buf memleak on parser error
Hans de Goede
hdegoede at redhat.com
Thu Aug 25 03:19:53 PDT 2011
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
server/red_channel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/server/red_channel.c b/server/red_channel.c
index 87320b4..8993cc3 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -130,6 +130,7 @@ static void red_peer_handle_incoming(RedsStream *stream, IncomingHandler *handle
SPICE_VERSION_MINOR, &parsed_size, &parsed_free);
if (parsed == NULL) {
red_printf("failed to parse message type %d", handler->header.type);
+ handler->cb->release_msg_buf(handler->opaque, &handler->header, handler->msg);
handler->cb->on_error(handler->opaque);
return;
}
--
1.7.5.1
More information about the Spice-devel
mailing list