makekeys: free strings before exiting
authorRan Benita <ran234@gmail.com>
Sun, 1 Apr 2012 13:57:31 +0000 (16:57 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 2 Apr 2012 12:09:36 +0000 (13:09 +0100)
Just to make valgrind happy.

Signed-off-by: Ran Benita <ran234@gmail.com>
makekeys/makekeys.c

index 4d7767f..35bd66d 100644 (file)
@@ -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);
 }