From d2798e54d52102a6ee3841072f2054865347e131 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 1 Jul 2011 09:15:55 +1000 Subject: xsetwacom: plug minor memory leak data is allocated, needs to be freed. No real impact since xsetwacom will exit anyway after this. Signed-off-by: Peter Hutterer Reviewed-by: Ping Cheng (cherry picked from commit 42132efc7f22a353f5d5976cb898abd1ea04e761) Cherry-picked, but essentially newly written. It's just one line and upstream is _very_ different Conflicts: tools/xsetwacom.c --- tools/xsetwacom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 11aea03..e4dd501 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1480,6 +1480,7 @@ static void special_map_buttons(Display *dpy, XDevice *dev, param_t* param, int (unsigned char*)btnact_data, btnact_nitems); XFlush(dpy); + free(data); } -- cgit v1.2.1