[PATCH libxi 1/2] Plug a memory leak

Emilio Pozuelo Monfort pochu at debian.org
Tue Oct 25 19:31:18 UTC 2016


Introduced in commit 19a9cd6.

Reported-by: Julien Cristau <jcristau at debian.org>
Signed-off-by: Emilio Pozuelo Monfort <pochu at debian.org>
---
 src/XIQueryDevice.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/XIQueryDevice.c b/src/XIQueryDevice.c
index a457cd6..e3b0c9f 100644
--- a/src/XIQueryDevice.c
+++ b/src/XIQueryDevice.c
@@ -135,6 +135,8 @@ error_loop:
         Xfree(info[i].name);
         Xfree(info[i].classes);
     }
+    Xfree(info);
+    Xfree(buf);
 error:
     UnlockDisplay(dpy);
 error_unlocked:
-- 
2.9.3



More information about the xorg-devel mailing list