"Chris Thomasson"
news:CvKdnTuMp8k-Mp_VnZ2dnUVZ_j2dnZ2d@comcast.com...
>
> "Razii"
> news:1fb504tv1hh117tovsa6iss1iqro0cemh5@4ax.com...
>> On Sun, 13 Apr 2008 18:38:27 -0700, "Chris Thomasson"
>>
>>
>>>Your test is silly because it leaks a whole lot of memory! WTF?
>>
>> My version was leaking memory (it's actually the version by Mirek
>> Fidler)? Absolutely not. The memory peak in that old version was 65
>> MB. Yours was leaking with 700 MB memory!
>
> The code linked to right here leaks memory:
>
> http://pastebin.com/f6bfa4d78
>
> If you did not write that, then I am sorry.
WOAH! I am seeing things! There is NO memory leak. I don't know why, but the
first code I downloaded had the DeleteTree function written as:
1.. void DeleteTree(Tree *t)
2.. {
3.. if(t)
4.. {
5.. delete t->left;
6.. delete t->right;
7.. delete t;
8.. }
9.. }
WTF! Sorry!