Fixed memory leak

Fixed memory leak with truth table usage in M closure class