Fix memory leak in strToSane