From: nasm-bot f. C. G. <gor...@gm...> - 2017-08-16 22:03:17
|
Commit-ID: 750048723eb837b663828ff25e872b6054bebb38 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=750048723eb837b663828ff25e872b6054bebb38 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Wed, 26 Jul 2017 01:21:16 +0300 Committer: H. Peter Anvin <hp...@zy...> CommitDate: Wed, 16 Aug 2017 14:59:15 -0700 preproc: Free token's text if only it has been modified https://bugzilla.nasm.us/show_bug.cgi?id=3392414 Signed-off-by: Cyrill Gorcunov <gor...@gm...> Signed-off-by: H. Peter Anvin <hp...@zy...> --- asm/preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/preproc.c b/asm/preproc.c index f6e296b..0d0e104 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -1280,8 +1280,8 @@ static char *detoken(Token * tlist, bool expand_locals) t->text = nasm_zalloc(2); } else t->text = nasm_strdup(p); + nasm_free(q); } - nasm_free(q); } /* Expand local macros here and not during preprocessing */ |