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
4945 gen_function(sym);4945 gen_function(sym);
4946 macro_ptr = NULL; /* fail safe */4946 macro_ptr = NULL; /* fail safe */
4947 4947
4948 tok_str_free(str);
4949 inline_generated = 1;4948 inline_generated = 1;
4950 }4949 }
4951 }4950 }
4952 if (!inline_generated)4951 if (!inline_generated)
4953 break;4952 break;
4954 }4953 }
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 }
4955 dynarray_reset(&tcc_state->inline_fns, &tcc_state->nb_inline_fns);4959 dynarray_reset(&tcc_state->inline_fns, &tcc_state->nb_inline_fns);
4956}4960}
4957 4961

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