Fix bug introduced in previous commit. It was trying to free non heap allocated strings.