]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
plugin: Call dlclose before return in try_load_plugin
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Feb 2020 11:29:51 +0000 (03:29 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 19 Feb 2020 16:59:57 +0000 (08:59 -0800)
commite2b46ba142d9901897d8189422f0bcc28e5660b8
tree62e6fd39f1f202498b3ec21a028eea5179942b7c
parent09a14ccd990cbe4b91b13eb71dc89310dfbf2ff7
plugin: Call dlclose before return in try_load_plugin

Since plugin can be used only once in try_load_plugin, call dlclose
before return.

PR binutils/25355
* plugin.c (plugin_list_entry): Remove handle.
(try_load_plugin): Call dlclose before return.

(cherry picked from commit dcf06b89b9129da6988878a77afdd02d3acc2e30)
bfd/ChangeLog
bfd/plugin.c