This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] objcopy: Close some memory leaks in error paths
- From: Nick Clifton <nickc at redhat dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>, binutils at sourceware dot org
- Date: Fri, 4 Nov 2016 16:15:41 +0000
- Subject: Re: [PATCH] objcopy: Close some memory leaks in error paths
- Authentication-results: sourceware.org; auth=none
- References: <1478257224-26265-1-git-send-email-andrew.burgess@embecosm.com>
Hi Andrew,
> I don't know if we care greatly about memory leaks on error paths,
> especially in objcopy where we'll certainly be about to exit, but
> given that I spotted these I thought I'd post this patch.
Somebody somewhere always cares... :-)
> binutils/ChangeLog:
>
> * objcopy.c (copy_section): Add extra calls to free for error
> paths.
Cheers
Nick