diff options
author | Erkki Seppälä <erkki.seppala@vincit.fi> | 2011-01-31 14:02:01 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:26 +0200 |
commit | 44e472068b163b7be001b74fec1ed98bcdde85e2 (patch) | |
tree | 30db898de72c77e4e7970ea02f823a88030e5a5a /nx-X11/lib/X11/imRm.c | |
parent | 89dc7ccfbcaf45db6ca8d5fa548568b7fb7529de (diff) | |
download | nx-libs-44e472068b163b7be001b74fec1ed98bcdde85e2.tar.gz nx-libs-44e472068b163b7be001b74fec1ed98bcdde85e2.tar.bz2 nx-libs-44e472068b163b7be001b74fec1ed98bcdde85e2.zip |
ximcp/imRm: Handle leaking colormap_ret
Fixed memory leak by adding Xfree for colormap_ret
Variable "colormap_ret" goes out of scope
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11/imRm.c')
-rw-r--r-- | nx-X11/lib/X11/imRm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nx-X11/lib/X11/imRm.c b/nx-X11/lib/X11/imRm.c index b66bc1421..c0c6d8eb8 100644 --- a/nx-X11/lib/X11/imRm.c +++ b/nx-X11/lib/X11/imRm.c @@ -2808,6 +2808,8 @@ _XimEncodeLocalPreeditValue( ic->core.focus_window, &colormap_ret, &count, (Atom)p->value))) return False; + + Xfree(colormap_ret); } return True; } @@ -2828,6 +2830,8 @@ _XimEncodeLocalStatusValue( ic->core.focus_window, &colormap_ret, &count, (Atom)p->value))) return False; + + Xfree(colormap_ret); } return True; } |