mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 07:58:04 +02:00
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:
parent
0ace642a2d
commit
46e6c78b1a
1 changed files with 3 additions and 1 deletions
|
|
@ -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))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue