This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix coff_start_symtab resource leak found by Coverity
- From: Gary Benson <gbenson at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 1 Mar 2019 14:09:56 +0000
- Subject: Re: [PATCH] Fix coff_start_symtab resource leak found by Coverity
- References: <1550848393-2743-1-git-send-email-gbenson@redhat.com> <87va1b69h1.fsf@tromey.com>
Tom Tromey wrote:
> >>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:
>
> Gary> Hi all,
> Gary> This commit fixes a resource leak found by Coverity, where
> Gary> coff_start_symtab performs an xstrdup that is now performed
> Gary> within start_symtab by buildsym_compunit::buildsym_compunit.
>
> Gary> Built and regtested on RHEL 7.6 x86_64.
>
> Gary> Ok to commit?
>
> Yes, thank you.
Thanks, I pushed it.
Cheers,
Gary