This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] plugin: Call dlclose before return in try_load_plugin
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 19 Feb 2020 15:29:24 +1030
- Subject: Re: [PATCH] plugin: Call dlclose before return in try_load_plugin
- References: <20200218125016.140100-1-hjl.tools@gmail.com>
On Tue, Feb 18, 2020 at 04:50:16AM -0800, H.J. Lu wrote:
> Since plugin can be used only once in try_load_plugin, call dlclose
> before return.
>
> OK for master and 2.34 branch?
>
> PR binutils/25355
> * plugin.c (plugin_list_entry): Remove handle.
> (try_load_plugin): Call dlclose before return.
Looks OK to me.
--
Alan Modra
Australia Development Lab, IBM