Fix memory leak when displaying a SV string variable.