diff options
author | Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> | 2011-03-24 19:55:33 +0200 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> | 2011-04-13 11:05:59 +0300 |
commit | 4b2e8d00f5b6969c14003ee8eb258b9f0e4dd7c3 (patch) | |
tree | f669e41a0e38eec595371660ceccf3a00d9fa4c3 | |
parent | 46e6c78b1a89e4774e0f7e0f4d6d0fd060c3897e (diff) |
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>
-rw-r--r-- | modules/im/ximcp/imCallbk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/im/ximcp/imCallbk.c b/modules/im/ximcp/imCallbk.c index 866b27c6..6275bbf0 100644 --- a/modules/im/ximcp/imCallbk.c +++ b/modules/im/ximcp/imCallbk.c @@ -247,6 +247,8 @@ _XimCbDispatch(Xim xim, /* status = XimCbQueued; */ } else { /* status = XimCbError; */ + Xfree(pcb); + Xfree(proto_buf); } } else { |