structures: fix memory leak in red-black tree

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>