diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-09-17 08:50:42 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-09-17 08:53:29 -0700 |
commit | d839b9149957d9a8842c368caf97ef378d8c97af (patch) | |
tree | cf0716e5ff6f430baafb13d4f31744ba93e0b2cc /gdb/target-float.c | |
parent | e6cd1dc1e6c0d081382ee21c156b205204efc75b (diff) | |
download | gdb-d839b9149957d9a8842c368caf97ef378d8c97af.zip gdb-d839b9149957d9a8842c368caf97ef378d8c97af.tar.gz gdb-d839b9149957d9a8842c368caf97ef378d8c97af.tar.bz2 |
Free symbol buffers if they are no longer in use
add_specific_symbols allocates a buffer to hold symbols. It should be
freed only if it is no longer in use.
PR binutils/23633
* objcopy.c (strip_specific_buffer): New.
(strip_unneeded_buffer): Likewise.
(keep_specific_buffer): Likewise.
(localize_specific_buffer): Likewise.
(globalize_specific_buffer): Likewise.
(keepglobal_specific_buffer): Likewise.
(weaken_specific_buffer): Likewise.
(add_specific_symbols): Add an argument to return pointer to
allocated buffer.
(copy_main): Update add_specific_symbols to update pointers to
allocated buffer. Free pointers to allocated buffer before
return.
Diffstat (limited to 'gdb/target-float.c')
0 files changed, 0 insertions, 0 deletions