Merge pull request #354 from asmaloney:fix_mem_dealloc

pull/355/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit 519e23bf0b
  1. 1
      modules/objdetect/src/matching.cpp
  2. 2
      modules/ocl/src/initialization.cpp

@ -1212,6 +1212,7 @@ int maxFunctionalScore(const CvLSVMFilterObject **all_F, int n,
free(tmpPartsDisplacement[i]); free(tmpPartsDisplacement[i]);
} }
free(tmpPoints); free(tmpPoints);
free(tmpPartsDisplacement);
free(tmpScore); free(tmpScore);
free(tmpKPoints); free(tmpKPoints);

@ -615,7 +615,7 @@ namespace cv
CL_PROGRAM_BUILD_LOG, buildLogSize, buildLog, NULL)); CL_PROGRAM_BUILD_LOG, buildLogSize, buildLog, NULL));
cout << "\n\t\t\tBUILD LOG\n"; cout << "\n\t\t\tBUILD LOG\n";
cout << buildLog << endl; cout << buildLog << endl;
delete buildLog; delete [] buildLog;
} }
openCLVerifyCall(status); openCLVerifyCall(status);
} }

Loading…
Cancel
Save