fix memory leak when sending outbound messages

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