summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 14:11:02 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-27 14:11:02 -0700
commita9d7c13147419532cc668e797d949413de895be5 (patch)
tree4e041a9910d514efab0611d6032f3e36ae0c4c1c /xrdp
parent5e537ebdfe90bb0319465423c310ce4367281ae5 (diff)
downloadxrdp-proprietary-a9d7c13147419532cc668e797d949413de895be5.tar.gz
xrdp-proprietary-a9d7c13147419532cc668e797d949413de895be5.zip
coverity: read from pointer after free
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index aaa90a3a..bd8edaea 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -2374,8 +2374,8 @@ server_paint_rects(struct xrdp_mod* mod, int num_drects, short *drects,
g_malloc(sizeof(short) * num_crects * 4, 0);
if (enc_data->crects == 0)
{
- g_free(enc_data);
g_free(enc_data->drects);
+ g_free(enc_data);
return 1;
}