Fixed memory leak at sdigits mixing: TreeS is properly cleaned for each file