[VersionControl] Fix leak in NodeExtension