fixed bug #303682 of a leak reported by Malcolm Rowe Daniel * tree.c: fixed bug #303682 of a leak reported by Malcolm Rowe Daniel