Commit 7024f3d9 authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Ulrich Sibiller

Fix memory leak on _XimCommitRecv error path.

parent 60840dc3
......@@ -687,8 +687,10 @@ _XimCommitRecv(
return False;
if (!(_XimProcCommit(ic, (BYTE *)&buf_s[5],
(int)buf_s[4], &string, &string_len)))
(int)buf_s[4], &string, &string_len))) {
Xfree(keysym);
return False;
}
}
if (!(_XimRegCommitInfo(ic, string, string_len, keysym, keysym_len))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment