When loading a blend file with a cryptomatte legacy node there is always a small memory leak on deleting the node. This was triggering an assert when running compositor render tests.
Leak can be reproduced by opening lib\tests\compositor\matte\node_cryptomatte_legacy.blend and closing blender.
Matte id node data was not being freed/copied.