projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9afadd2
)
fix tiny memory leak in read_packet (leak only happens when malloc returns NULL so...
author
Henning Sten
<henning.sten@yahoo.com>
Sat, 20 Sep 2008 11:08:58 +0000
(13:08 +0200)
committer
Julien 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
patch
|
blob
|
history
diff --git
a/src/xcb_in.c
b/src/xcb_in.c
index
1d029af
..
f613772
100644
(file)
--- 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;