]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/read.c
gas: free sy_hash, macro_hash and po_hash
[thirdparty/binutils-gdb.git] / gas / read.c
index 2f9a22a8d76fd6bb59fc5baded46638cc26408ef..edf3f2a788199e52fe804f6ff1e0105664906707 100644 (file)
@@ -248,6 +248,7 @@ static void s_reloc (int);
 static int hex_float (int, char *);
 static segT get_known_segmented_expression (expressionS * expP);
 static void pobegin (void);
+static void poend (void);
 static size_t get_non_macro_line_sb (sb *);
 static void generate_file_debug (void);
 static char *_find_end_of_line (char *, int, int, int);
@@ -276,6 +277,12 @@ read_begin (void)
   if (flag_mri)
     lex_type['?'] = 3;
 }
+
+void
+read_end (void)
+{
+  poend ();
+}
 \f
 #ifndef TC_ADDRESS_BYTES
 #define TC_ADDRESS_BYTES address_bytes
@@ -561,6 +568,12 @@ pobegin (void)
   pop_override_ok = 1;
   cfi_pop_insert ();
 }
+
+static void
+poend (void)
+{
+  htab_delete (po_hash);
+}
 \f
 #define HANDLE_CONDITIONAL_ASSEMBLY(num_read)                          \
   if (ignore_input ())                                                 \