mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
codeview: use nasm_free() instead of plain free()
We want to consistently use our allocator wrapper functions whereever possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
parent
771d04e263
commit
6a5b3ecb16
@ -285,16 +285,16 @@ static void cv8_cleanup(void)
|
||||
build_type_table(type_sect);
|
||||
|
||||
if (cv8_state.source_file.name != NULL)
|
||||
free(cv8_state.source_file.name);
|
||||
nasm_free(cv8_state.source_file.name);
|
||||
|
||||
if (cv8_state.cwd != NULL)
|
||||
free(cv8_state.cwd);
|
||||
nasm_free(cv8_state.cwd);
|
||||
|
||||
saa_free(cv8_state.lines);
|
||||
|
||||
saa_rewind(cv8_state.symbols);
|
||||
while ((sym = saa_rstruct(cv8_state.symbols)))
|
||||
free(sym->name);
|
||||
nasm_free(sym->name);
|
||||
saa_free(cv8_state.symbols);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user