mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
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:
parent
736be08cf3
commit
b6a173fad5
@ -1280,8 +1280,8 @@ static char *detoken(Token * tlist, bool expand_locals)
|
|||||||
t->text = nasm_zalloc(2);
|
t->text = nasm_zalloc(2);
|
||||||
} else
|
} else
|
||||||
t->text = nasm_strdup(p);
|
t->text = nasm_strdup(p);
|
||||||
|
nasm_free(q);
|
||||||
}
|
}
|
||||||
nasm_free(q);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expand local macros here and not during preprocessing */
|
/* Expand local macros here and not during preprocessing */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user