summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_bsddb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 203bba2..408efc3 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -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);