Fix freeing of static string.