minor cleanup before realloc mess