fix memory leak in Symbol and String