TS-2180 Small memory leak in RecCore.cc, from previous refactoring