Fix memory leak on _XimCommitRecv error path.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Ander Conselvan de Oliveira 2011-03-24 19:52:05 +02:00
parent 0ace642a2d
commit 46e6c78b1a

View file

@ -691,8 +691,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))) {