[PATCH 2/7] evdev: leaked_storage: EvdevAddAbsClass: Variable "mode" goes out of scope

Oliver McFadden oliver.mcfadden at nokia.com
Mon Apr 19 21:11:17 PDT 2010


Signed-off-by: Oliver McFadden <oliver.mcfadden at nokia.com>
---
 src/evdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/evdev.c b/src/evdev.c
index c3b44bb..aae9b23 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1235,6 +1235,7 @@ EvdevAddAbsClass(DeviceIntPtr device)
             pEvdev->flags |= EVDEV_RELATIVE_MODE;
         else
             xf86Msg(X_INFO, "%s: unknown mode, use default\n", pInfo->name);
+        xfree(mode);
     }
 
     return Success;
-- 
1.6.1



More information about the xorg-devel mailing list