From: John Gilmore Date: Sat, 6 Jul 1991 02:33:08 +0000 (+0000) Subject: Add comment about commented-out bfd_release calls. X-Git-Tag: gdb-4_18~24117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca18a446bc0f1f97f3e5eb0921b13ebbdecbb333;p=platform%2Fupstream%2Fbinutils.git Add comment about commented-out bfd_release calls. --- diff --git a/bfd/archive.c b/bfd/archive.c index fd7fc3c..2f91901 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -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; }