https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112543
--- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> --- J.2 Undefined behavior (180) The value of a pointer that refers to space deallocated by a call to the free or realloc function is used (7.24.3).