[Spice-devel] [PATCH spice 1/3] Use parsed_free() to free parsed data

Marc-André Lureau marcandre.lureau at gmail.com
Wed Apr 18 09:52:55 PDT 2012


---
 server/snd_worker.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/snd_worker.c b/server/snd_worker.c
index 7bdd399..9cf1ebb 100644
--- a/server/snd_worker.c
+++ b/server/snd_worker.c
@@ -478,7 +478,7 @@ static void snd_receive(void* data)
                 }
                 if (!channel->handle_message(channel, parsed_size,
                                              header->get_msg_type(header), parsed)) {
-                    free(parsed);
+                    parsed_free(parsed);
                     snd_disconnect_channel(channel);
                     return;
                 }
-- 
1.7.10



More information about the Spice-devel mailing list