MCPcopy Create free account
hub / github.com/ElementsProject/lightning / was_plugin_destroyed

Function was_plugin_destroyed

lightningd/plugin.c:652–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652static bool was_plugin_destroyed(struct plugin_destroyed *pd)
653{
654 if (pd->plugin) {
655 tal_del_destructor2(pd->plugin, mark_plugin_destroyed, pd);
656 tal_free(pd);
657 return false;
658 }
659 tal_free(pd);
660 return true;
661}
662
663static void destroy_request(struct jsonrpc_request *req,
664 struct plugin *plugin)

Callers 1

plugin_read_jsonFunction · 0.85

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected