[Bug default/27633] low mem memory leaks

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Tue Mar 23 11:15:48 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27633

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This fixes it:
...
diff --git a/dwz.c b/dwz.c
index 4fc01a3..3dd4d5e 100644
--- a/dwz.c
+++ b/dwz.c
@@ -6628,7 +6628,8 @@ read_debug_info (DSO *dso, int kind, unsigned int
*die_count)
       if (dup_htab == NULL)
        dwz_oom ();
     }
-  if (unlikely (op_multifile || rd_multifile || fi_multifile || low_mem))
+  if (meta_abbrev_htab == NULL
+      && unlikely (op_multifile || rd_multifile || fi_multifile || low_mem))
     {
       meta_abbrev_htab
        = htab_try_create (500, meta_abbrev_hash, meta_abbrev_eq,
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Dwz mailing list