Correctly fetch realloc() retval