Re: bfd_close and target free_cached_memory
authorAlan Modra <amodra@gmail.com>
Thu, 1 Jun 2023 23:30:41 +0000 (09:00 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Jun 2023 00:11:49 +0000 (09:41 +0930)
commit63188cb5c3e2814d6527d0309af4db8634e8cdaa
tree8f76c8fe03fc8f2d312b16ee44bf406393ab0bf4
parente0ce6dde97881435d33652572789b94c846cacde
Re: bfd_close and target free_cached_memory

_bfd_delete_bfd can be called early, before the target xvec is set up.

* opncls.c (_bfd_delete_bfd): Don't segfault on NULL xvec.
bfd/opncls.c