mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common/utils: don't free tmpctx, just the children.
In some daemons I want to hand it into a loop, which would call clean_tmpctx(). This causes a subtle bug. So just free the children directly: the pointer itself remains valid. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -22,7 +22,7 @@ u8 *tal_hexdata(const tal_t *ctx, const void *str, size_t len);
|
||||
/* Use the POSIX C locale. */
|
||||
void setup_locale(void);
|
||||
|
||||
/* Global temporary convenience context: freed in io loop core. */
|
||||
/* Global temporary convenience context: children freed in io loop core. */
|
||||
extern const tal_t *tmpctx;
|
||||
|
||||
/* Initial creation of tmpctx. */
|
||||
|
||||
Reference in New Issue
Block a user