| 1856 | |
| 1857 | #if DEVELOPER |
| 1858 | static void dev_connect_memleak(struct daemon *daemon, const u8 *msg) |
| 1859 | { |
| 1860 | struct htable *memtable; |
| 1861 | bool found_leak; |
| 1862 | |
| 1863 | memtable = memleak_start(tmpctx); |
| 1864 | memleak_ptr(memtable, msg); |
| 1865 | |
| 1866 | /* Now delete daemon and those which it has pointers to. */ |
| 1867 | memleak_scan_obj(memtable, daemon); |
| 1868 | memleak_scan_htable(memtable, &daemon->peers.raw); |
| 1869 | |
| 1870 | found_leak = dump_memleak(memtable, memleak_status_broken); |
| 1871 | daemon_conn_send(daemon->master, |
| 1872 | take(towire_connectd_dev_memleak_reply(NULL, |
| 1873 | found_leak))); |
| 1874 | } |
| 1875 | |
| 1876 | static void dev_suppress_gossip(struct daemon *daemon, const u8 *msg) |
| 1877 | { |
no test coverage detected