Commit 5bd56e74 authored by Andy Maloney's avatar Andy Maloney

Fix mem leak and mismatched new/delete

parent 2b4ffd11
......@@ -1212,6 +1212,7 @@ int maxFunctionalScore(const CvLSVMFilterObject **all_F, int n,
free(tmpPartsDisplacement[i]);
}
free(tmpPoints);
free(tmpPartsDisplacement);
free(tmpScore);
free(tmpKPoints);
......
......@@ -615,7 +615,7 @@ namespace cv
CL_PROGRAM_BUILD_LOG, buildLogSize, buildLog, NULL));
cout << "\n\t\t\tBUILD LOG\n";
cout << buildLog << endl;
delete buildLog;
delete [] buildLog;
}
openCLVerifyCall(status);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment