Do not cast return value of malloc/realloc