Cleanup split memleaks

Clean up a couple of memory leaks in samtools split relating to strings, state and opts.