public inbox for gdb-testers@sourceware.org help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Subject: [binutils-gdb] bfd_check_format memory leak Date: Fri, 20 Dec 2019 11:29:00 -0000 [thread overview] Message-ID: <9d78076ef8ef07890ad89c1122bdf49932a979a5@gdb-build> (raw) *** TEST RESULTS FOR COMMIT 9d78076ef8ef07890ad89c1122bdf49932a979a5 *** commit 9d78076ef8ef07890ad89c1122bdf49932a979a5 Author: Alan Modra <amodra@gmail.com> AuthorDate: Fri Dec 20 10:03:30 2019 +1030 Commit: Alan Modra <amodra@gmail.com> CommitDate: Fri Dec 20 13:36:06 2019 +1030 bfd_check_format memory leak * format.c (bfd_check_format_matches): Free matching_vector when not returning matching target strings. diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c399eac35a..61d1991159 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2019-12-20 Alan Modra <amodra@gmail.com> + + * format.c (bfd_check_format_matches): Free matching_vector when + not returning matching target strings. + 2019-12-20 Alan Modra <amodra@gmail.com> * coff-alpha.c (alpha_ecoff_read_ar_hdr): Free ar_hdr on error return. diff --git a/bfd/format.c b/bfd/format.c index 1d1363d184..17b48556a9 100644 --- a/bfd/format.c +++ b/bfd/format.c @@ -513,6 +513,8 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching) *(const char **) &matching_vector[match_count] = name; } } + else if (matching_vector) + free (matching_vector); return FALSE; }
next reply other threads:[~2019-12-20 11:24 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-20 11:29 gdb-buildbot [this message] 2019-12-20 11:24 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, branch master gdb-buildbot 2019-12-21 6:07 ` Failures on Fedora-i686, " gdb-buildbot 2019-12-21 6:09 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot 2019-12-21 6:42 ` Failures on Fedora-x86_64-m32, " gdb-buildbot 2019-12-21 6:47 ` Failures on Fedora-x86_64-m64, " gdb-buildbot 2019-12-21 6:54 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot 2019-12-21 7:05 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot 2019-12-21 7:18 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot 2019-12-21 7:29 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=9d78076ef8ef07890ad89c1122bdf49932a979a5@gdb-build \ --to=gdb-buildbot@sergiodj.net \ --cc=gdb-testers@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).