diff options
author | Adam Jackson <ajax@redhat.com> | 2008-11-06 14:54:13 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-11-06 14:54:13 -0500 |
commit | 0f0168ad18f8a280fc5a689eb02cfaa62d022ea6 (patch) | |
tree | c4e95661549a6d162ad98ee669690dbcb05be651 /modules/im/ximcp | |
parent | ae23c25b9349ab1d7ff81f3075c000cf35fc442b (diff) |
Fix leak in _XimXGetReadData
Spotted by Denis Dzyubenko
Diffstat (limited to 'modules/im/ximcp')
-rw-r--r-- | modules/im/ximcp/imTrX.c | 1 |
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, |