From cfcd5b6636a4f0b9ab0ce6595267179e1f13b1d9 Mon Sep 17 00:00:00 2001 From: Enrico Ronconi Date: Mon, 7 Dec 2020 17:43:18 +0100 Subject: [PATCH] surface_matching/PPF3DDetector::match : fix memory leak --- modules/surface_matching/src/ppf_match_3d.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/surface_matching/src/ppf_match_3d.cpp b/modules/surface_matching/src/ppf_match_3d.cpp index f8477a38f..c5c25e27e 100644 --- a/modules/surface_matching/src/ppf_match_3d.cpp +++ b/modules/surface_matching/src/ppf_match_3d.cpp @@ -583,9 +583,7 @@ void PPF3DDetector::match(const Mat& pc, std::vector& results, const poseList.push_back(pose); } -#if defined (_OPENMP) free(accumulator); -#endif } // TODO : Make the parameters relative if not arguments.