aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-dedup.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-01-20 17:41:56 +1030
committerAlan Modra <amodra@gmail.com>2025-01-20 18:16:15 +1030
commitbf2da5d57d7532855e56538a4a7242c705b1d27d (patch)
tree0c409dd16e39296d98f037f97f50fec29c635f63 /libctf/ctf-dedup.c
parentc785932bb5ae8f8b9e8857c6436e13f051710858 (diff)
downloadbinutils-bf2da5d57d7532855e56538a4a7242c705b1d27d.zip
binutils-bf2da5d57d7532855e56538a4a7242c705b1d27d.tar.gz
binutils-bf2da5d57d7532855e56538a4a7242c705b1d27d.tar.bz2
ldelf_before_allocation leak
ldelf_before_allocation is passed the audit and depaudit strings built from command line args, then possibly adds to the depaudit string, freeing the original. The new string isn't freed. Fix this leak by keeping the string attached to the static vars. * ldelf.c (ldelf_before_allocation): Pass char** for audit and depaudit. Adjust uses. * ldelf.h (ldelf_before_allocation): Update prototype. * gld${EMULATION_NAME}_before_allocation: Update call.
Diffstat (limited to 'libctf/ctf-dedup.c')
0 files changed, 0 insertions, 0 deletions