summaryrefslogtreecommitdiff
path: root/modules/im/ximcp
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-11-06 14:54:13 -0500
committerAdam Jackson <ajax@redhat.com>2008-11-06 14:54:13 -0500
commit0f0168ad18f8a280fc5a689eb02cfaa62d022ea6 (patch)
treec4e95661549a6d162ad98ee669690dbcb05be651 /modules/im/ximcp
parentae23c25b9349ab1d7ff81f3075c000cf35fc442b (diff)
Fix leak in _XimXGetReadData
Spotted by Denis Dzyubenko
Diffstat (limited to 'modules/im/ximcp')
-rw-r--r--modules/im/ximcp/imTrX.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/im/ximcp/imTrX.c b/modules/im/ximcp/imTrX.c
index 08309bf..c5e50a4 100644
--- a/modules/im/ximcp/imTrX.c
+++ b/modules/im/ximcp/imTrX.c
@@ -358,6 +358,7 @@ _XimXGetReadData(
(void)memcpy(buf, prop_ret, (int)nitems);
*ret_len = (int)nitems;
if (bytes_after_ret > 0) {
+ XFree(prop_ret);
XGetWindowProperty(im->core.display,
spec->lib_connect_wid, prop, 0L,
((length + bytes_after_ret + 3)/ 4), True, AnyPropertyType,