summary refs log tree commit diff stats
path: root/src/common/make-te.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/make-te.c')
-rw-r--r--src/common/make-te.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/make-te.c b/src/common/make-te.c
index 309eec2f..834646ef 100644
--- a/src/common/make-te.c
+++ b/src/common/make-te.c
@@ -42,7 +42,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-int main()
+int main(void)
 {
 	char name[512];
 	char num[512];
@@ -87,9 +87,11 @@ int main()
 		if (i + 1 < max)
 		{
 			fprintf(stderr, "\t%s,\t\t%s,\n", defines[i], defines[i+1]);
+			free (defines[i]);
 			i++;
 		} else
 			fprintf(stderr, "\t%s,\n", defines[i]);
+		free (defines[i]);
 		i++;
 	}
 	fprintf(stderr, "\tNUM_XP\n};\n");