nasm/output
H. Peter Anvin (Intel) 5b9dce55cb outas86.c: fix memory leak during initialization
It is just an O(1) memory leak but might as well fix it.
filename_set_extension() returns a newly allocated string,
as86_add_string() does not consume a string reference, so the string
is left danging at the end; add nasm_free() to free it.

Reported-by: <for-just-we@github.com>
Fixes: https://github.com/netwide-assembler/nasm/issues/255
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-28 16:40:17 -07:00
..
codeview.c Proper handling of several code sections in Codeview debug information 2026-06-07 20:17:36 -07:00
dwarf.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
elf.h elf: add support for GNU indirect function symbol type (gnu_ifunc) 2026-04-09 18:23:57 -07:00
macho.h build_version pragma + macro for Mach-O 2025-10-03 10:47:27 -07:00
nulldbg.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
nullout.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outaout.c output: fix null pointer dereferences in output/outaout.c 2025-10-06 14:58:40 -07:00
outaout.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outas86.c outas86.c: fix memory leak during initialization 2026-06-28 16:40:17 -07:00
outas86.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outbin.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outbin.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outcoff.c outcoff.c: Added support for 'function' type on global symbols. 2026-06-07 20:08:03 -07:00
outcoff.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outdbg.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outdbg.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outelf.c output/outelf.c: fix address sanitizer findings in elf output format 2026-04-17 06:38:10 +08:00
outelf.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outelf.mac treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outform.c output/outform.c: change "Legacy alias" -> "Alias" in help text 2026-04-06 18:16:10 -07:00
outform.h outform.h: add "omf", "omf2" and "os2" as aliases for obj[2] 2026-04-06 18:14:56 -07:00
outieee.c Remove useless parentheses in return statements 2025-10-06 14:28:54 -07:00
outlib.c treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outlib.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00
outmacho.c Remove useless parentheses in return statements 2025-10-06 14:28:54 -07:00
outmacho.mac build_version pragma + macro for Mach-O 2025-10-03 10:47:27 -07:00
outobj.c Remove useless parentheses in return statements 2025-10-06 14:28:54 -07:00
outobj.mac outobj: add obj2 driver 2025-10-04 15:57:24 -07:00
pecoff.h outcoff.c: dd symbol wrt ..symtab 2026-06-07 20:05:20 -07:00
stabs.h treewide: replace verbose copyright headers with SPDX tags 2025-10-01 11:45:31 -07:00