diff --git a/modules/softcascade/src/octave.cpp b/modules/softcascade/src/octave.cpp index e1e46c5b19..45b7671edd 100644 --- a/modules/softcascade/src/octave.cpp +++ b/modules/softcascade/src/octave.cpp @@ -320,6 +320,8 @@ void BoostedSoftCascadeOctave::traverse(const CvBoostTree* tree, cv::FileStorage fs << "}"; + + delete [] leafs; } void BoostedSoftCascadeOctave::write( cv::FileStorage &fso, const FeaturePool* pool, InputArray _thresholds) const