From 91ff14e3facdfc88fb6c1d762f30ded8cd10dd86 Mon Sep 17 00:00:00 2001 From: Giuliano Roberto Pinheiro Date: Mon, 1 May 2017 19:31:50 -0300 Subject: [PATCH] Memleak fix: deallocate FeatureMatrix after its use --- demo/bow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/bow.cpp b/demo/bow.cpp index ecb7e91..dcd3d69 100644 --- a/demo/bow.cpp +++ b/demo/bow.cpp @@ -10,6 +10,7 @@ int main(int argc, char **argv) { double time = omp_get_wtime() - start_time; printf("rows:%d cols:%d time:%f\n",featureMatrix->nFeaturesVectors,featureMatrix->featureVector[0]->size, time); + destroyFeatureMatrix(&featureMatrix); destroyDirectoryManager(&directoryManager); return 0; }