]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ar.c memory leak fixme
authorAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:21:53 +0000 (22:51 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Jan 2025 12:21:53 +0000 (22:51 +1030)
commitd58fbef40d70057b83d3773aa409b402236a7e62
tree4d4e62f94122090846efae3e22fd4e5e15dd6fb0
parentc5e10fb2eb81573f004aff454a81b2ef4f06a3ae
ar.c memory leak fixme

Cure the leak by always mallocing the string in output_filename,
and freeing the old one any time we assign output_filename.
binutils/ar.c