mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-03 00:49:01 +08:00
Fix another use-after-free (issue #3394)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
81ecbfa53f
commit
cca46e6b29
@ -953,7 +953,6 @@ static void ReleaseAllBlobsAndDeleteUnused(BLOBNBOX_LIST *blobs) {
|
|||||||
for (BLOBNBOX_IT blob_it(blobs); !blob_it.empty(); blob_it.forward()) {
|
for (BLOBNBOX_IT blob_it(blobs); !blob_it.empty(); blob_it.forward()) {
|
||||||
BLOBNBOX *blob = blob_it.extract();
|
BLOBNBOX *blob = blob_it.extract();
|
||||||
if (blob->owner() == nullptr) {
|
if (blob->owner() == nullptr) {
|
||||||
delete blob->cblob();
|
|
||||||
delete blob;
|
delete blob;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user