How did I not know reallocf existed this whole time?