summaryrefslogtreecommitdiff
path: root/preproc.c
diff options
context:
space:
mode:
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 d7a96d82..07179e12 100644
--- a/preproc.c
+++ b/preproc.c
@@ -5006,7 +5006,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)));
}
istk = i->next;
list->downlevel(LIST_INCLUDE);