realloc corner cases