File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -402,9 +402,7 @@ ZstdCompressor_dealloc(PyObject *ob)
402402 ZSTD_freeCCtx (self -> cctx );
403403 }
404404
405- if (PyMutex_IsLocked (& self -> lock )) {
406- PyMutex_Unlock (& self -> lock );
407- }
405+ assert (!PyMutex_IsLocked (& self -> lock ));
408406
409407 /* Py_XDECREF the dict after free the compression context */
410408 Py_CLEAR (self -> dict );
Original file line number Diff line number Diff line change @@ -602,9 +602,7 @@ ZstdDecompressor_dealloc(PyObject *ob)
602602 ZSTD_freeDCtx (self -> dctx );
603603 }
604604
605- if (PyMutex_IsLocked (& self -> lock )) {
606- PyMutex_Unlock (& self -> lock );
607- }
605+ assert (!PyMutex_IsLocked (& self -> lock ));
608606
609607 /* Py_CLEAR the dict after free decompression context */
610608 Py_CLEAR (self -> dict );
You can’t perform that action at this time.
0 commit comments