fix some warnings reported by valgrind

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