mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-30 23:49:05 +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()) {
|
||||
BLOBNBOX *blob = blob_it.extract();
|
||||
if (blob->owner() == nullptr) {
|
||||
delete blob->cblob();
|
||||
delete blob;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user