aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>2011-03-24 19:55:33 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:26 +0200
commit60840dc318efb680611ccfeae365b38f370de0bc (patch)
tree746f114916feb1a5549deba3768883dd02fb6500 /nx-X11
parent9fa1e98dd7c3481f8e1a0d31037c01c5b02440fc (diff)
downloadnx-libs-60840dc318efb680611ccfeae365b38f370de0bc.tar.gz
nx-libs-60840dc318efb680611ccfeae365b38f370de0bc.tar.bz2
nx-libs-60840dc318efb680611ccfeae365b38f370de0bc.zip
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> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/imCallbk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/imCallbk.c b/nx-X11/lib/X11/imCallbk.c
index 866b27c64..6275bbf00 100644
--- a/nx-X11/lib/X11/imCallbk.c
+++ b/nx-X11/lib/X11/imCallbk.c
@@ -247,6 +247,8 @@ _XimCbDispatch(Xim xim,
/* status = XimCbQueued; */
} else {
/* status = XimCbError; */
+ Xfree(pcb);
+ Xfree(proto_buf);
}
}
else {