dupTree fixes
a006
memory leak fix