fix some memory leaks

Link: https://github.com/GeneAssembly/biosal/issues/400
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>