| 31 | } |
| 32 | |
| 33 | void tal_wally_end(const tal_t *parent) |
| 34 | { |
| 35 | tal_t *p; |
| 36 | while ((p = tal_first(wally_tal_ctx)) != NULL) { |
| 37 | /* Refuse to make a loop! */ |
| 38 | assert(p != parent); |
| 39 | #if DEVELOPER |
| 40 | /* Don't steal backtrace from wally_tal_ctx! */ |
| 41 | if (tal_name(p) && streq(tal_name(p), "backtrace")) { |
| 42 | tal_free(p); |
| 43 | continue; |
| 44 | } |
| 45 | #endif /* DEVELOPER */ |
| 46 | tal_steal(parent, p); |
| 47 | } |
| 48 | wally_tal_ctx = tal_free(wally_tal_ctx); |
| 49 | } |
| 50 | |
| 51 | void tal_wally_end_onto_(const tal_t *parent, |
| 52 | tal_t *from_wally, |