mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-02 02:38:11 +02:00
Fix memory leaks on _XimCbDispatch 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
46e6c78b1a
commit
4b2e8d00f5
1 changed files with 2 additions and 0 deletions
|
|
@ -247,6 +247,8 @@ _XimCbDispatch(Xim xim,
|
|||
/* status = XimCbQueued; */
|
||||
} else {
|
||||
/* status = XimCbError; */
|
||||
Xfree(pcb);
|
||||
Xfree(proto_buf);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue