Fix memory leak bug in FsmMatch class.