From ad9568060eefbf79073f260249fe1ff8df59bf53 Mon Sep 17 00:00:00 2001 From: mingodad Date: Tue, 25 Mar 2014 18:06:14 +0000 Subject: A possible fix for the memory leak reported by valgrind when running tcctest.c with tcc. --- tccelf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 036dba3..6bde7d5 100644 --- a/tccelf.c +++ b/tccelf.c @@ -2444,6 +2444,7 @@ static int elf_output_file(TCCState *s1, const char *filename) tcc_free(sec_order); tcc_free(phdr); tcc_free(s1->sym_attrs); + s1->sym_attrs = NULL; return ret; } -- cgit v1.3.1