mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
Add hidden command line option --no-dlclose to remove dlclose() for unloaded plugins (useful when using valgrind)
This commit is contained in:
@@ -745,7 +745,8 @@ plugin_remove (struct t_weechat_plugin *plugin)
|
||||
/* free data */
|
||||
if (plugin->filename)
|
||||
free (plugin->filename);
|
||||
dlclose (plugin->handle);
|
||||
if (!weechat_plugin_no_dlclose)
|
||||
dlclose (plugin->handle);
|
||||
if (plugin->name)
|
||||
free (plugin->name);
|
||||
if (plugin->description)
|
||||
|
||||
Reference in New Issue
Block a user