[PATCH 5/7] emuWheel: leaked_storage: EvdevWheelEmuHandleButtonMap: Variable "option_string" goes out of scope

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


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

diff --git a/src/emuWheel.c b/src/emuWheel.c
index 3f0dfd4..afafff7 100644
--- a/src/emuWheel.c
+++ b/src/emuWheel.c
@@ -232,8 +232,8 @@ EvdevWheelEmuHandleButtonMap(InputInfoPtr pInfo, WheelAxisPtr pAxis, char* axis_
 	} else {
 	    xf86Msg(X_WARNING, "%s: Invalid %s value:\"%s\"\n",
 		    pInfo->name, axis_name, option_string);
-
 	}
+	xfree(option_string);
 
 	/* Clean up and log what happened */
 	if (msg) {
-- 
1.6.1



More information about the xorg-devel mailing list