Close memory and resource leaks detected by coverity in the binutils directory.
authorNick Clifton <nickc@redhat.com>
Fri, 20 Jul 2018 14:05:34 +0000 (15:05 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 20 Jul 2018 14:05:34 +0000 (15:05 +0100)
commit3391569f218cd5d05e96769f47559d5828be3acd
treeb5225952bb0f8f814014e1a1477f540f626be5d2
parent8095d2f70e1a982c006f306be1a9e1c892758914
Close memory and resource leaks detected by coverity in the binutils directory.

* objcopy.c (add_specific_symbols): Free buffer on exit.
(add_redefine_syms_file): Close file handle on exit.
(copy_object): Close file handle on early exit.
Free buffer on early exit.
Free gaps buffers once they are no longer needed.
* dwarf.c (display_debug_frames): Free allocated memory on exit.
(load_separate_debug_info): Free allocate memory on early exit.
binutils/ChangeLog
binutils/dwarf.c
binutils/objcopy.c