Commit 9813778e732180407adb44766cc42fa4fe610f6a

Ran Benita 2012-04-01T16:57:31

makekeys: free strings before exiting Just to make valgrind happy. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makekeys/makekeys.c b/makekeys/makekeys.c
index 4d7767f..35bd66d 100644
--- a/makekeys/makekeys.c
+++ b/makekeys/makekeys.c
@@ -321,5 +321,8 @@ skip2:  ;
     printf("};\n");
     printf("\n#endif /* KS_TABLES_H */\n");
 
+    for (i = 0; i < ksnum; i++)
+        free(info[i].name);
+
     exit(0);
 }