TRQ-3010. Fix a memory leak when creating cray subnodes.