aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-02 10:14:57 +1030
committerAlan Modra <amodra@gmail.com>2020-03-02 11:36:19 +1030
commit9cb56943d7f8de419d15e7ff1614d342b4682340 (patch)
tree97e8c2be1c5b51c25712dce6efcaca7903b4e149 /gdb/eval.c
parent363a2bc6dd2b034a669c26055e021a17c96067e2 (diff)
downloadgdb-9cb56943d7f8de419d15e7ff1614d342b4682340.zip
gdb-9cb56943d7f8de419d15e7ff1614d342b4682340.tar.gz
gdb-9cb56943d7f8de419d15e7ff1614d342b4682340.tar.bz2
alpha-vms: error paths not freeing memory and malloc result checks
When realloc fails it doesn't free the old memory. In BFD we usually will exit with an error on a realloc fail, so want to tidy up memory on error paths. That's done by bfd_realloc_or_free. * vms-alpha.c (vms_get_remaining_object_record): Use bfd_realloc_or_free rather than bfd_realloc. (add_symbol_entry, vector_grow1, alpha_vms_slurp_relocs): Likewise. (dst_define_location, parse_module): Likewise, and check realloc return status before using memory. Return status from function adjusting all callers.
Diffstat (limited to 'gdb/eval.c')
0 files changed, 0 insertions, 0 deletions