https://github.com/Cubified/tuibox/blob/28035a91f23808024b4effccb47a0ae0d5b297b3/demos/demo_basic.c#L27 A realloc is mostly a `free -> copy -> malloc`, so the incoming buffer pointer will be freed, causing a double free at the caller site.
tuibox/demos/demo_basic.c
Line 27 in 28035a9
A realloc is mostly a
free -> copy -> malloc, so the incoming buffer pointer will be freed, causing a double free at the caller site.