* Commit: Fix memory leak in ar
@ 2015-08-04 13:50 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2015-08-04 13:50 UTC (permalink / raw)
To: binutils
Hi Guys,
I am checking in the patch below to close a small memory leak in ar,
should it encounter an invalid patch whilst extracting files.
Cheers
Nick
binutils/ChangeLog
2015-08-04 Nick Clifton <nickc@redhat.com>
* ar.c (extract_file): Free cbuf if the path is invalid.
diff --git a/binutils/ar.c b/binutils/ar.c
index 94c79e2..2765dcc 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1041,6 +1041,7 @@ extract_file (bfd *abfd)
{
non_fatal (_("illegal pathname found in archive member: %s"),
bfd_get_filename (abfd));
+ free (cbuf);
return;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-04 13:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 13:50 Commit: Fix memory leak in ar Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).