[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


            Bug ID: 3392804
           Summary: Preprocessor uses free in one place instead of
           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

$ 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

     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