diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-08-24 16:14:46 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-08-25 14:04:27 +0200 |
commit | e9d6e86fc806b1f43a8785e00527add211cfb786 (patch) | |
tree | 40081c3c54a6bd880f21700b88217c5f6483a839 | |
parent | c5b6bacee17387136f73591857c77184ddff74a7 (diff) | |
download | spice-e9d6e86fc806b1f43a8785e00527add211cfb786.tar.gz spice-e9d6e86fc806b1f43a8785e00527add211cfb786.tar.xz spice-e9d6e86fc806b1f43a8785e00527add211cfb786.zip |
red_channel: Fix msg buf memleak on parser error
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | 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 87320b47..8993cc37 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; } |