diff options
author | Alan Modra <amodra@gmail.com> | 2025-01-20 17:41:56 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-01-20 18:16:15 +1030 |
commit | bf2da5d57d7532855e56538a4a7242c705b1d27d (patch) | |
tree | 0c409dd16e39296d98f037f97f50fec29c635f63 /libctf/ctf-dedup.c | |
parent | c785932bb5ae8f8b9e8857c6436e13f051710858 (diff) | |
download | binutils-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