Add comment about commented-out bfd_release calls.
authorJohn Gilmore <gnu@cygnus>
Sat, 6 Jul 1991 02:33:08 +0000 (02:33 +0000)
committerJohn Gilmore <gnu@cygnus>
Sat, 6 Jul 1991 02:33:08 +0000 (02:33 +0000)
bfd/archive.c

index fd7fc3c5cf721af10a6e2870e074fe2a684837e4..2f91901394f48d6521b8d029e9a0b740cd1189bf 100644 (file)
@@ -594,8 +594,11 @@ bfd_slurp_coff_armap (abfd)
   /* Pad to an even boundary if you have to */
   ardata->first_file_filepos += (ardata->first_file_filepos) %2;
 
-/*  bfd_release (abfd, (PTR)raw_armap);
-  bfd_release (abfd, (PTR)mapdata);*/
+  /* We'd like to release these allocations, but we have allocated stuff
+     since then (using the same obstack, if bfd_release is obstack based).
+     So they will stick around until the bfd is closed.  */
+  /*  bfd_release (abfd, (PTR)raw_armap);
+      bfd_release (abfd, (PTR)mapdata);  */
   bfd_has_map (abfd) = true;
   return true;
 }