Free the dup'd string.
Free more dup'd strings.
Merge pull request #362 from jimis/memleaks

Memleaks