gas: free sy_hash, macro_hash and po_hash

* macro.c (macro_end): New function.
	* macro.h (macro_end): Declare.
	* read.c (read_end, poend): New functions.
	* read.h (read_end): Declare.
	* symbols.c (symbol_end): New function.
	* symbols.h (symbol_end): Declare.
	* output-file.c (output_file_close): Call new *_end functions.
This commit is contained in:
Alan Modra
2022-07-05 13:00:41 +09:30
parent 5a210b9fe8
commit b18220936c
7 changed files with 33 additions and 0 deletions

View File

@@ -20,6 +20,8 @@
#include "as.h"
#include "subsegs.h"
#include "sb.h"
#include "macro.h"
#include "output-file.h"
#ifndef TARGET_MACH
@@ -103,6 +105,9 @@ output_file_close (void)
if (!keep_it && filename)
unlink_if_ordinary (filename);
macro_end ();
read_end ();
symbol_end ();
subsegs_end (obs);
if (!res)