check calls to*_free in node, worker_pool and worker

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