Fixed memory leek in tree (add)