Browse Source

plugin: unregister hooks a plugin registered while freeing it

travis-debug
darosior 5 years ago
committed by neil saitug
parent
commit
362775bc02
  1. 1
      lightningd/plugin.c

1
lightningd/plugin.c

@ -47,6 +47,7 @@ struct plugins *plugins_new(const tal_t *ctx, struct log_book *log_book,
static void destroy_plugin(struct plugin *p) static void destroy_plugin(struct plugin *p)
{ {
plugin_hook_unregister_all(p);
list_del(&p->list); list_del(&p->list);
} }

Loading…
Cancel
Save