diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 676d6f4b8..9fe7bab93 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -2871,7 +2871,7 @@ void HOGDescriptor::readALTModel(std::string modelfile) detector.push_back((float)-linearbias); setSVMDetector(detector); - delete linearwt; + delete [] linearwt; } else { throw Exception(); }