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