]> git.ozlabs.org Git - ccan/commitdiff
tal: handle take() pointers more carefully.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Dec 2018 00:16:32 +0000 (10:46 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Dec 2018 00:16:32 +0000 (10:46 +1030)
take() applies to the literal pointer value, so tal_free() means it may
randomly apply to a future allocation.  Similarly, tal_resize() should
preserve it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found