Check return of realloc