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

Function handle_dev_memleak

channeld/channeld.c:3653–3668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3651}
3652
3653static void handle_dev_memleak(struct peer *peer, const u8 *msg)
3654{
3655 struct htable *memtable;
3656 bool found_leak;
3657
3658 memtable = memleak_start(tmpctx);
3659 memleak_ptr(memtable, msg);
3660
3661 /* Now delete peer and things it has pointers to. */
3662 memleak_scan_obj(memtable, peer);
3663
3664 found_leak = dump_memleak(memtable, memleak_status_broken);
3665 wire_sync_write(MASTER_FD,
3666 take(towire_channeld_dev_memleak_reply(NULL,
3667 found_leak)));
3668}
3669
3670#if EXPERIMENTAL_FEATURES
3671static void handle_dev_quiesce(struct peer *peer, const u8 *msg)

Callers 1

req_inFunction · 0.70

Calls 5

memleak_startFunction · 0.50
memleak_ptrFunction · 0.50
memleak_scan_objFunction · 0.50
dump_memleakFunction · 0.50
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected