Helper to free an ptr if it's taken() */
| 99 | |
| 100 | /* Helper to free an ptr if it's taken() */ |
| 101 | static inline void tal_free_if_taken(const tal_t *p) |
| 102 | { |
| 103 | if (taken(p)) |
| 104 | tal_free(p); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Append one tal array to another (TAKES) |