Fixed leaking C strings.