Re: [RFC] Fix BFD leak in solib-darwin.c

Tom Tromey
2019-02-25T13:51:10Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> On 02/22/2019 04:36 PM, Tom Tromey wrote:
>> if (sub != NULL)
>> dyld_bfd = sub;
>> else
>> - dyld_bfd.release ();
>> + dyld_bfd.reset (nullptr);

Pedro> These 4 lines are now equivalent to just doing:

Pedro> dyld_bfd = sub;

I made this change and I'm going to commit it shortly.

Tom