summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2019-01-01 14:34:04 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-01-01 14:34:04 -0800
commit003e30a66a249f5c70b30d1c187385124cd4cdad (patch)
tree2e6cb56a858ef4de0f57c4b8c062abe9c26e746f
parent30656fd66ad47aeaca0bfc237a818f189554f07e (diff)
Avoid use-after-free in _XimProtoSetIMValues()
Fixes gitlab issue #49 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--modules/im/ximcp/imDefIm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/im/ximcp/imDefIm.c b/modules/im/ximcp/imDefIm.c
index 970df0cf..cf922e48 100644
--- a/modules/im/ximcp/imDefIm.c
+++ b/modules/im/ximcp/imDefIm.c
@@ -1297,8 +1297,6 @@ _XimProtoSetIMValues(
if ((name = _XimEncodeIMATTRIBUTE(im, im->core.im_resources,
im->core.im_num_resources, arg, &arg_ret, data, data_len,
&ret_len, (XPointer)&im_values, XIM_SETIMVALUES))) {
- if (buf != tmp_buf)
- Xfree(buf);
break;
}