[Xcb-commit] src

Julien Danjou jdanjou at kemper.freedesktop.org
Sat Sep 20 05:21:33 PDT 2008


 src/xcb_in.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit db332dcda989b5b021dc220c102666f695c772cf
Author: Henning Sten <henning.sten at yahoo.com>
Date:   Sat Sep 20 13:08:58 2008 +0200

    fix tiny memory leak in read_packet (leak only happens when malloc returns NULL so it's very rare)
    
    Signed-off-by: Julien Danjou <julien at danjou.info>

diff --git a/src/xcb_in.c b/src/xcb_in.c
index 1d029af..f613772 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -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;


More information about the xcb-commit mailing list