[PATCH 08/16] Fix memory leaks on _XimCbDispatch error path.

Ander Conselvan de Oliveira ander.conselvan-de-oliveira at nokia.com
Wed Mar 30 06:12:01 PDT 2011


Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira at nokia.com>
---
 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 866b27c..6275bbf 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 {
-- 
1.7.0.4



More information about the xorg-devel mailing list