mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Mismatching new[] / delete
This commit is contained in:
parent
ec15d6f383
commit
1e1645e214
@ -2871,7 +2871,7 @@ void HOGDescriptor::readALTModel(std::string modelfile)
|
||||
|
||||
detector.push_back((float)-linearbias);
|
||||
setSVMDetector(detector);
|
||||
delete linearwt;
|
||||
delete [] linearwt;
|
||||
} else {
|
||||
throw Exception();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user