fix memory leak in ring queue

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