[opencv] 09/19: fixed memory leak in findHomography tests
Mattia Rizzolo
mattia at debian.org
Tue Oct 4 17:51:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 2.4.12.3
in repository opencv.
commit 15b313ce4bd08cb380dba6a569eb816e31ceb084
Author: Ilya Lavrenov <ilya.lavrenov at itseez.com>
Date: Mon Oct 12 00:11:45 2015 +0300
fixed memory leak in findHomography tests
(cherry picked from commit ec5244a73abf36014fdd2763ff1f16e5e986cbb4)
---
modules/calib3d/test/test_homography.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/calib3d/test/test_homography.cpp b/modules/calib3d/test/test_homography.cpp
index f68af1d..2db0a3c 100644
--- a/modules/calib3d/test/test_homography.cpp
+++ b/modules/calib3d/test/test_homography.cpp
@@ -12,6 +12,7 @@
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
+// Copyright (C) 2015, Itseez Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
@@ -562,6 +563,9 @@ void CV_HomographyTest::run(int)
default: continue;
}
}
+
+ delete[]src_data;
+ src_data = NULL;
}
}
--
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