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,6 +3454,8 @@ DB_verify(DBObject* self, PyObject* args, PyObject* kwargs) ...@@ -3454,6 +3454,8 @@ DB_verify(DBObject* self, PyObject* args, PyObject* kwargs)
error=DB_close_internal(self, 0, 1); error=DB_close_internal(self, 0, 1);
if (error) { if (error) {
if (outFile)
fclose(outFile);
return error; return error;
} }
} }
......
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