diff options
author | Henning Sten <henning.sten@yahoo.com> | 2008-09-20 13:08:58 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2008-09-20 14:21:17 +0200 |
commit | db332dcda989b5b021dc220c102666f695c772cf (patch) | |
tree | 2f24b2b6a9bba3bfbec9fcde64957d55af6583af | |
parent | 9afadd2aef8af89a4f4ab70baeae0b848904c367 (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>
-rw-r--r-- | src/xcb_in.c | 1 |
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; |