[Nasm-bugs] [Bug 3392804] New: Preprocessor uses free in one place instead of nasm_free
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Wed Aug 24 06:03:53 PDT 2022
https://bugzilla.nasm.us/show_bug.cgi?id=3392804
Bug ID: 3392804
Summary: Preprocessor uses free in one place instead of
nasm_free
Product: NASM
Version: 2.16 (development)
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at ulukai.org
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Built from git using configure
This is at
https://github.com/netwide-assembler/nasm/blob/3aebb20f123033dcd767f0abc46b18cbefed8091/asm/preproc.c#L1842
$ git diff
diff --git a/asm/preproc.c b/asm/preproc.c
index 0ff2b518..fb64b6b8 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -1841,7 +1841,7 @@ static Token *new_Token_free(Token * next, enum
token_type ty
pe,
if (txtlen <= INLINE_TEXT) {
memcpy(t->text.a, text, txtlen);
- free(text);
+ nasm_free(text);
} else {
t->text.p.ptr = text;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list