fixed memory leak in splitstring reallocation