style, failure check on realloc