objcopy: Close some memory leaks in error paths
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Aug 2016 15:04:59 +0000 (16:04 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 4 Nov 2016 22:13:06 +0000 (22:13 +0000)
commit848ac659685fba46ce8816400db705f60c8040f7
tree77ddadb777db7938f2e69a567a6baac396dc0914
parentc42608e136ef1eb52f65002d5e7efe6d62b7f285
objcopy: Close some memory leaks in error paths

Closes some memory leaks within objcopy for error paths.

binutils/ChangeLog:

* objcopy.c (copy_section): Add extra calls to free for error
paths.
binutils/ChangeLog
binutils/objcopy.c