We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26760f1 commit 43617f8Copy full SHA for 43617f8
Modules/_bz2module.c
@@ -367,6 +367,7 @@ static void
367
BZ2Compressor_dealloc(PyObject *op)
368
{
369
BZ2Compressor *self = _BZ2Compressor_CAST(op);
370
+ assert(!PyMutex_IsLocked(&self->mutex));
371
BZ2_bzCompressEnd(&self->bzs);
372
PyTypeObject *tp = Py_TYPE(self);
373
tp->tp_free((PyObject *)self);
@@ -654,6 +655,7 @@ static void
654
655
BZ2Decompressor_dealloc(PyObject *op)
656
657
BZ2Decompressor *self = _BZ2Decompressor_CAST(op);
658
659
660
if(self->input_buffer != NULL) {
661
PyMem_Free(self->input_buffer);
0 commit comments