Fix another use-after-free (issue #3394)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-04-11 21:37:25 +02:00
parent 81ecbfa53f
commit cca46e6b29

View File

@ -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;
}
}