Commit affac006 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #24703: Fixed resource leak on error in bsddb.verify().

Original patch by Pankaj Sharma.
parent 81c670d5
......@@ -3454,9 +3454,11 @@ DB_verify(DBObject* self, PyObject* args, PyObject* kwargs)
error=DB_close_internal(self, 0, 1);
if (error) {
return error;
if (outFile)
fclose(outFile);
return error;
}
}
}
MYDB_BEGIN_ALLOW_THREADS;
err = self->db->verify(self->db, fileName, dbName, outFile, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment