[opencv] 19/33: fixed memory leak in ml module

Mattia Rizzolo mattia at debian.org
Tue Oct 4 17:51:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to annotated tag 2.4.12.2
in repository opencv.

commit b5e42d8cc149796adb9cdc8400df6d6f1a9a324f
Author: Ilya Lavrenov <ilya.lavrenov at itseez.com>
Date:   Tue Sep 1 11:26:25 2015 +0300

    fixed memory leak in ml module
    
    (cherry picked from commit d7bb1025f32ed268da7230cae3e8cb413dbab282)
---
 modules/ml/src/ertrees.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/ml/src/ertrees.cpp b/modules/ml/src/ertrees.cpp
index d911834..fe3e04c 100644
--- a/modules/ml/src/ertrees.cpp
+++ b/modules/ml/src/ertrees.cpp
@@ -537,6 +537,9 @@ void CvERTreeTrainData::set_data( const CvMat* _train_data, int _tflag,
     if( data )
         delete data;
 
+    if ( pair16u32s_ptr )
+        cvFree( &pair16u32s_ptr );
+
     if (_fdst)
         cvFree( &_fdst );
     if (_idst)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list