fix tiny memory leak in read_packet (leak only happens when malloc returns NULL so...
authorHenning Sten <henning.sten@yahoo.com>
Sat, 20 Sep 2008 11:08:58 +0000 (13:08 +0200)
committerJulien Danjou <julien@danjou.info>
Sat, 20 Sep 2008 12:21:17 +0000 (14:21 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
src/xcb_in.c

index 1d029af..f613772 100644 (file)
@@ -191,6 +191,7 @@ static int read_packet(xcb_connection_t *c)
         if(!cur)
         {
             _xcb_conn_shutdown(c);
+            free(buf);
             return 0;
         }
         cur->reply = buf;