headless:  Free allocated string from sprintf