From 14d3a03f4173f017fa180d034ab678de3b105fa1 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 28 Dec 2014 08:14:05 -0500 Subject: [PATCH] Fix leak in make-te This doesn't really matter but it shuts up AddressSanitizer --- src/common/make-te.c | 2 ++ 1 file changed, 2 insertions(+) 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");