Skip to content

Commit 8b1cea2

Browse files
committed
chore: resolve comment
1 parent 7964033 commit 8b1cea2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/bytearrayobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ _bytearray_with_buffer(PyByteArrayObject *self, PyObject *sub,
100100
{
101101
PyObject *res;
102102

103+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
104+
103105
self->ob_exports++;
104106
res = op(PyByteArray_AS_STRING(self), Py_SIZE(self), sub, start, end);
105107
self->ob_exports--;

0 commit comments

Comments
 (0)