Permalink
Browse files

fixed linemod func memory leak issue

  • Loading branch information...
1 parent 4a4a4f5 commit 62462bc75d56c636db04c9b20f88e0bce94e4a98 @BlazingForests BlazingForests committed Mar 24, 2015
Showing with 6 additions and 0 deletions.
  1. +6 −0 recognition/src/linemod.cpp
@@ -1272,7 +1272,13 @@ pcl::LINEMOD::detectTemplatesSemiScaleInvariant (
}
}
+#ifdef __SSE2__
+ aligned_free (score_sums);
+ aligned_free (tmp_score_sums);
+#else
delete[] score_sums;
+#endif
+
#ifdef LINEMOD_USE_SEPARATE_ENERGY_MAPS
delete[] score_sums_1;
delete[] score_sums_2;

0 comments on commit 62462bc

Please sign in to comment.