The Keying node leaks memory when only the edges output is used. That's because tweaked matte is computed in that case, but is never used nor released because the other two outputs are not needed. To fix this, release the tweaked matte if it is not used.