forked from Imagelibrary/binutils-gdb
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user