[PATCH 1/7] evdev: leaked_storage: EvdevPreInit: Variable "str" goes out of scope

Oliver McFadden oliver.mcfadden at nokia.com
Mon Apr 19 21:11:16 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 d133870..c3b44bb 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -2071,6 +2071,7 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
         num_calibration = sscanf(str, "%d %d %d %d",
                                  &calibration[0], &calibration[1],
                                  &calibration[2], &calibration[3]);
+        xfree(str);
         if (num_calibration == 4)
             EvdevSetCalibration(pInfo, num_calibration, calibration);
         else
-- 
1.6.1



More information about the xorg-devel mailing list