Memory leaks in bfd/vms-lib.c
authorAlan Modra <amodra@gmail.com>
Wed, 7 Jun 2023 01:23:36 +0000 (10:53 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 7 Jun 2023 01:35:12 +0000 (11:05 +0930)
commit0a22a8f27df7d092620dfa1f0135a2dd7b44528a
treef86c5b5f9998ca27955c7bedc1037ea9d4817c3b
parentc7e6669a5b29240b1e5f6fd2acc987fd75b71044
Memory leaks in bfd/vms-lib.c

* vms-lib.c (vms_lib_read_index): Free malloc'd memory on error
return paths.
(vms_write_index, _bfd_vms_lib_write_archive_contents): Likewise.
bfd/vms-lib.c