diff options
| author | grischka <grischka> | 2016-11-11 20:25:13 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2016-11-11 20:25:13 +0100 |
| commit | 59216d3db0bbf8c213124587c5549dc6025f2af2 (patch) | |
| tree | d6f88b5c2d076abec477bd7762f0683124de1366 /tccgen.c | |
| parent | 7c28c9b13f7c924c18920b51f42b1119c3b1e2ee (diff) | |
| download | tinycc-59216d3db0bbf8c213124587c5549dc6025f2af2.tar.gz tinycc-59216d3db0bbf8c213124587c5549dc6025f2af2.tar.bz2 | |
tccgen: fix inline_functions double free fix
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -6544,10 +6544,8 @@ ST_FUNC void free_inline_functions(TCCState *s) /* free tokens of unused inline functions */ for (i = 0; i < s->nb_inline_fns; ++i) { struct InlineFunc *fn = s->inline_fns[i]; - if (fn->sym) { - tok_str_free(fn->func_str->str); - tal_free(tokstr_alloc, fn->func_str); - } + if (fn->sym) + tok_str_free(fn->func_str); } dynarray_reset(&s->inline_fns, &s->nb_inline_fns); } |
