copied derivedmesh was not freed after usage