fix double free in sketch tool

This PR fixes a bug where use of the `-seqid` parameter causes a double free attempt, resulting in an error message (and error code being set!) at the end of a successful sketch run.