diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-10 12:24:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-05-10 15:40:24 -0700 |
commit | 6a5b3ecb160dbb06a91158d889912a7d370bfcd0 (patch) | |
tree | e2e662ea146d31c9bf1ed6656d64229d9147a7cc | |
parent | 771d04e263f16ed496da3573e8b0481d7c25314d (diff) | |
download | nasm-6a5b3ecb160dbb06a91158d889912a7d370bfcd0.tar.gz |
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>
-rw-r--r-- | output/codeview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/output/codeview.c b/output/codeview.c index 616f574b..84abd7d8 100644 --- a/output/codeview.c +++ b/output/codeview.c @@ -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); } |