diff options
Diffstat (limited to 'Modules/bz2module.c')
-rw-r--r-- | Modules/bz2module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/bz2module.c b/Modules/bz2module.c index db10f31..562198b 100644 --- a/Modules/bz2module.c +++ b/Modules/bz2module.c @@ -1264,6 +1264,7 @@ BZ2File_iternext(BZ2FileObject *self) PyBytesObject* ret; ACQUIRE_LOCK(self); if (self->mode == MODE_CLOSED) { + RELEASE_LOCK(self); PyErr_SetString(PyExc_ValueError, "I/O operation on closed file"); return NULL; |