mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-06 16:04:43 +08:00
preproc.c: free expansion definitions as needed
This commit is contained in:
parent
104803de9f
commit
9412465dc1
19
preproc.c
19
preproc.c
@ -5188,22 +5188,9 @@ static char *pp_getline(void)
|
||||
}
|
||||
if (ed->cur_depth > 0) {
|
||||
ed->cur_depth --;
|
||||
} else if ((ed->type != EXP_MMACRO) && (ed->type != EXP_IF)) {
|
||||
/***** should this really be right here??? *****/
|
||||
/*
|
||||
Line *l = NULL, *ll = NULL;
|
||||
for (l = ed->line; l != NULL;) {
|
||||
if (l->first != NULL) {
|
||||
free_tlist(l->first);
|
||||
l->first = NULL;
|
||||
}
|
||||
ll = l;
|
||||
l = l->next;
|
||||
nasm_free(ll);
|
||||
}
|
||||
expansions = ed->prev;
|
||||
nasm_free(ed);
|
||||
*/
|
||||
} else if (ed->type != EXP_MMACRO) {
|
||||
expansions = ed->prev;
|
||||
free_expdef(ed);
|
||||
}
|
||||
if ((ei->type == EXP_REP) ||
|
||||
(ei->type == EXP_MMACRO) ||
|
||||
|
Loading…
Reference in New Issue
Block a user