summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-28 08:14:05 -0500
committerTingPing <tingping@tingping.se>2014-12-28 08:14:05 -0500
commit14d3a03f4173f017fa180d034ab678de3b105fa1 (patch)
treee7e996cc1a4d27477e22a09496e82f4b710b3c86 /src
parent95febd978c9f5b0c1eb76b3a2c506ef540087ce3 (diff)
Fix leak in make-te
This doesn't really matter but it shuts up AddressSanitizer
Diffstat (limited to 'src')
-rw-r--r--src/common/make-te.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/make-te.c b/src/common/make-te.c
index 5eceb5f0..834646ef 100644
--- a/src/common/make-te.c
+++ b/src/common/make-te.c
@@ -87,9 +87,11 @@ int main(void)
 		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");