using realloc again for segbase in commit