sturfee / randomforest-matlab

Automatically exported from code.google.com/p/randomforest-matlab
0 stars 0 forks source link

memory leak in #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is a small memory leak in mexClassRF_train.

Adding the following lines:

    if (tst_available) {}
    else {
      free(xts);
      free(yts);
    }

to mex_ClassificationRF_train.cpp at line 273 fixes the problem.

Original issue reported on code.google.com by pieter.e...@gmail.com on 7 May 2013 at 9:46

GoogleCodeExporter commented 8 years ago
thanks a lot. i will look into it soon.

Original comment by abhirana on 8 May 2013 at 6:51