fix some warnings found with valgrind

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