thorium: fix a memory leak (not obvious) in node.c

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