Fix memory leak displaying string values in the data sheet