mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
plugin: unregister hooks a plugin registered while freeing it
This commit is contained in:
parent
1e7b332716
commit
362775bc02
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ struct plugins *plugins_new(const tal_t *ctx, struct log_book *log_book,
|
|||
|
||||
static void destroy_plugin(struct plugin *p)
|
||||
{
|
||||
plugin_hook_unregister_all(p);
|
||||
list_del(&p->list);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue