From: Keith Kanios Date: Sat, 18 Dec 2010 17:47:28 +0000 (-0600) Subject: preproc.c: free expansion definitions as needed X-Git-Tag: nasm-2.11.05~458 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9412465dc1f66630b214dc6ea481aabae8308f99;p=platform%2Fupstream%2Fnasm.git preproc.c: free expansion definitions as needed --- diff --git a/preproc.c b/preproc.c index 6a9e238..278e1dd 100644 --- a/preproc.c +++ b/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) ||