[PATCH 2/5] libXi: Fix memory leak in XIGetSelectedEvents
Pauli Nieminen
ext-pauli.nieminen at nokia.com
Mon Jun 14 01:47:32 PDT 2010
mask_in was leaking for every successfull XIGetSelectedEvents.
Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
src/XISelEv.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/XISelEv.c b/src/XISelEv.c
index bdc4fd1..3c1f018 100644
--- a/src/XISelEv.c
+++ b/src/XISelEv.c
@@ -161,6 +161,8 @@ XIGetSelectedEvents(Display* dpy, Window win, int *num_masks_return)
*num_masks_return = reply.num_masks;
+ Xfree(mask_in);
+
return mask_out;
error:
--
1.6.3.3
More information about the xorg-devel
mailing list