summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-31 14:02:01 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 23:45:53 -0800
commitd695f5da9f5b778e54b6987d9177048e32818c4d (patch)
tree6e3fae71d002cf6e4d25317fcc20365081c9751d
parentf9eda19d08c1ea0973dfe0bc10a2519d6fd26cc7 (diff)
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>
-rw-r--r--modules/im/ximcp/imRm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/im/ximcp/imRm.c b/modules/im/ximcp/imRm.c
index 2e2c31f9..3d09b813 100644
--- a/modules/im/ximcp/imRm.c
+++ b/modules/im/ximcp/imRm.c
@@ -2821,6 +2821,8 @@ _XimEncodeLocalPreeditValue(
ic->core.focus_window, &colormap_ret,
&count, (Atom)p->value)))
return False;
+
+ Xfree(colormap_ret);
}
return True;
}
@@ -2841,6 +2843,8 @@ _XimEncodeLocalStatusValue(
ic->core.focus_window, &colormap_ret,
&count, (Atom)p->value)))
return False;
+
+ Xfree(colormap_ret);
}
return True;
}