[hackers] [slstatus][PATCH keymap 2/2] Free strduped string

From: <michaelbuch12_AT_gmail.com>
Date: Tue, 22 May 2018 22:50:20 +0100

From: Michael Buch <michaelbuch12_AT_gmail.com>

---
 components/keymap.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/components/keymap.c b/components/keymap.c
index 67d605e..6795207 100644
--- a/components/keymap.c
+++ b/components/keymap.c
_AT_@ -1,5 +1,6 @@
 /* See LICENSE file for copyright and license details. */
 #include <ctype.h>
+#include <stdlib.h>
 #include <string.h>
 #include <X11/XKBlib.h> 
 #include <X11/Xlib.h>
_AT_@ -52,6 +53,8 @@ GetKeyLayout(char *syms, char layout[], int groupNum)
 
 		token = strtok(NULL,delims);
 	}
+
+	free(copy);
 }
 
 const char *
-- 
2.17.0
Received on Tue May 22 2018 - 23:50:20 CEST

This archive was generated by hypermail 2.3.0 : Wed May 23 2018 - 00:00:33 CEST