fixed memory leak in contain matcher