strjoinsplit requires the caller to free memory

Signed-off-by: Jason Gerecke <killert...@gmail.com>
---
 tools/xsetwacom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 122f115..3148355 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -1289,6 +1289,7 @@ static Bool parse_actions(Display *dpy, int argc, char 
**argv, unsigned long* da
                if (!keyword_found)
                {
                        fprintf(stderr, "Cannot parse keyword '%s' at position 
%d\n", words[i], i+1);
+                       free(words);
                        return False;
                }
        }
-- 
2.1.0


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to