summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-03-12 22:35:42 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2011-03-12 22:35:42 +0300
commita09fe1ebfb6516a00a6b8d83d12586b0625b4981 (patch)
treeb50ad2a01eaf54350b0acb45cee81100780f60ed /preproc.c
parent8dcfd883c76b248fcafea2bda6e71acac9e7c052 (diff)
parentfaa13a241426bc8d7c4538ce92f46d01ca94f47b (diff)
downloadnasm-a09fe1ebfb6516a00a6b8d83d12586b0625b4981.tar.gz
nasm-a09fe1ebfb6516a00a6b8d83d12586b0625b4981.tar.bz2
nasm-a09fe1ebfb6516a00a6b8d83d12586b0625b4981.zip
Merge branch 'nasm-2.09.xx'
Conflicts: doc/changes.src version Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 75f9980..5fdeab2 100644
--- a/preproc.c
+++ b/preproc.c
@@ -5224,7 +5224,7 @@ static char *pp_getline(void)
/* only set line and file name if there's a next node */
if (i->next) {
src_set_linnum(i->lineno);
- nasm_free(src_set_fname(i->fname));
+ nasm_free(src_set_fname(nasm_strdup(i->fname)));
}
if ((i->next == NULL) && (finals != NULL)) {
in_final = true;