+2019-12-30 Alan Modra <amodra@gmail.com>
+
+ * vms-alpha.c (alpha_vms_free_private): New function, extracted..
+ (vms_close_and_cleanup): ..from here.
+ (alpha_vms_object_p): Call alpha_vms_free_private on failure.
+
+2019-12-30 Alan Modra <amodra@gmail.com>
+
+ * coffgen.c (coff_real_object_p): Free malloc'd memory on failure.
+
+2019-12-30 Alan Modra <amodra@gmail.com>
+
+ * archive.c (do_slurp_bsd_armap): Use bfd_alloc rather than
+ bfd_zalloc when memory is all written after the call.
+ (do_slurp_coff_armap): Likewise. Set bfd_error on ridiculously
+ large allocations that overflow bfd_size_type. Use just one
+ bfd_release on error exit.
+ (_bfd_slurp_extended_name_table): Use bfd_alloc for extended_names,
+ clear last byte rather than the entire array. Use bfd_alloc for
+ string table. Rearrange and simplify code copying file names.
+
+2019-12-29 Alan Modra <amodra@gmail.com>
+
+ * vms-alpha.c (_bfd_vms_slurp_egsd): Make base_addr a bfd_vma.
+ Limit alignment power. Correct and simplify alignment expression.
+ (evax_bfd_print_relocation_records): Avoid signed shift left.
+
+2019-12-29 Alan Modra <amodra@gmail.com>
+
+ * vms-misc.c (_bfd_vms_save_sized_string): Add abfd param, make
+ size a size_t. Use bfd_alloc rather than bfd_malloc.
+ (_bfd_vms_save_counted_string): Similarly.
+ * vms.h (_bfd_vms_save_sized_string): Update prototype.
+ (_bfd_vms_save_counted_string): Likewise.
+ * vms-alpha.c (_bfd_vms_slurp_ehdr): Adjust
+ _bfd_vms_save_counted_string and bfd_vms_save_sized_string calls.
+ (_bfd_vms_slurp_egsd, parse_module): Likewise.
+ (_bfd_vms_slurp_eisd): Likewise. Check return status.
+ (alpha_vms_bfd_link_hash_table_free): New function.
+ (alpha_vms_bfd_link_hash_table_create): Arrange to call it.
+ (vms_close_and_cleanup): Free more memory. Don't release tdata.
+
2019-12-29 Alan Modra <amodra@gmail.com>
* coffcode.h (coff_close_and_cleanup): Redefine to..