RandomForests icon indicating copy to clipboard operation
RandomForests copied to clipboard

bug-for- ~Tree()

Open Gzzgz opened this issue 8 years ago • 2 comments

Tree::~Tree() { if(_cartreeArray!=NULL) { for(int i=0;i<_nodeNum;++i) { if(_cartreeArray[i]!=NULL) { delete _cartreeArray[i]; _cartreeArray[i]=NULL; } } delete[] _cartreeArray; _cartreeArray=NULL; } }

error! about delete

Gzzgz avatar Dec 05 '17 07:12 Gzzgz

hi @Gzzgz can you give more detail about this error ? I tested the code on my mac and a centOS server and did not find this bug

handspeaker avatar Jan 05 '18 08:01 handspeaker

I use it on Ubuntu16.04 and it report memory error.

Miaowaaaa avatar Nov 27 '18 03:11 Miaowaaaa