Fix leak of string when doing parse dryrun