summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenning Sten <henning.sten@yahoo.com>2008-09-20 13:08:58 +0200
committerJulien Danjou <julien@danjou.info>2008-09-20 14:21:17 +0200
commitdb332dcda989b5b021dc220c102666f695c772cf (patch)
tree2f24b2b6a9bba3bfbec9fcde64957d55af6583af /src
parent9afadd2aef8af89a4f4ab70baeae0b848904c367 (diff)
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@danjou.info>
Diffstat (limited to 'src')
-rw-r--r--src/xcb_in.c1
1 files changed, 1 insertions, 0 deletions
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;