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 <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2017-07-26 01:21:16 +03:00
parent 736be08cf3
commit b6a173fad5

View File

@ -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 */