objcopy memory leaks after errors
authorAlan Modra <amodra@gmail.com>
Tue, 6 Jun 2023 00:20:56 +0000 (09:50 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 7 Jun 2023 01:35:11 +0000 (11:05 +0930)
commitf5c0d77088ee2878813861b5b72fa64001f1831a
tree2100ddf09f08bce0a2031f6e7981992ddc701df8
parentd5b46032b8a6df2d8dc004759bffb6cd7ecdbe14
objcopy memory leaks after errors

These aren't important at all, but tidy them in case they obscure
other more important leaks.

* objcopy (copy_file): Close input bfd after errors.
binutils/objcopy.c