Index: /issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp	(revision 14661)
+++ /issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp	(revision 14662)
@@ -45,10 +45,10 @@
 
 	/*intermediary: */
-	char *token = NULL;
-	char* tokenlistcopy=NULL;
+	char *token         = NULL;
+	char *tokenlistcopy = NULL;
 
 	/*First, because tokenizing destroys a string, copy what we have: */
 	tokenlistcopy= xNew<char>(strlen(tokenlist)+1); 
-	sprintf(tokenlistcopy,   "%s",tokenlist);
+	sprintf(tokenlistcopy,"%s",tokenlist);
 
 	/*Now go through list of tokens, and look for  target, return value: */
@@ -91,4 +91,7 @@
 		token = strtok(NULL, " ");
 	}
+
+	/*Clean up and return*/
+	xDelete<char>(tokenlistcopy);
 	return value;
 }
