free temporary string immediately