Fix leak in function classmatch
Fix leak for failed functions in ScopeMapBodyArgs