From db332dcda989b5b021dc220c102666f695c772cf Mon Sep 17 00:00:00 2001 From: Henning Sten Date: Sat, 20 Sep 2008 13:08:58 +0200 Subject: fix tiny memory leak in read_packet (leak only happens when malloc returns NULL so it's very rare) Signed-off-by: Julien Danjou --- src/xcb_in.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/xcb_in.c') 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; -- cgit v1.2.3