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:
H. Peter Anvin 2016-05-10 12:24:04 -07:00
parent 771d04e263
commit 6a5b3ecb16

View File

@ -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);
}