Fixed memory leak related to nodes

Whoopsies