History

tccgen: free inline functions correctly

grischka committed 17 years ago

Commit 0d34c211 parent 697f9e31 file · +5 −1Browse files

Unified · Split

tccgen.c+5−1
@@ -4945,13 +4945,17 @@ static void gen_inline_functions(void) · 4944 unmodified lines
49454945 gen_function(sym);
49464946 macro_ptr = NULL; /* fail safe */
49474947
4948− tok_str_free(str);
49494948 inline_generated = 1;
49504949 }
49514950 }
49524951 if (!inline_generated)
49534952 break;
49544953 }
4954+ for (i = 0; i < tcc_state->nb_inline_fns; ++i) {
4955+ fn = tcc_state->inline_fns[i];
4956+ str = fn->token_str;
4957+ tok_str_free(str);
4958+ }
49554959 dynarray_reset(&tcc_state->inline_fns, &tcc_state->nb_inline_fns);
49564960 }
49574961

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t