This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Fix BFD leak in solib-darwin.c
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at adacore dot com>, gdb-patches at sourceware dot org
- Date: Sat, 23 Feb 2019 00:32:01 +0000
- Subject: Re: [RFC] Fix BFD leak in solib-darwin.c
- References: <20190222163645.9349-1-tromey@adacore.com>
On 02/22/2019 04:36 PM, Tom Tromey wrote:
> if (sub != NULL)
> dyld_bfd = sub;
> else
> - dyld_bfd.release ();
> + dyld_bfd.reset (nullptr);
These 4 lines are now equivalent to just doing:
dyld_bfd = sub;
Thanks,
Pedro Alves