Skip to content

Commit 5cc26fe

Browse files
committed
Revert callback length restoration.
1 parent a2d4afa commit 5cc26fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/atexitmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ atexit_register(PyObject *module, PyObject *args, PyObject *kwargs)
235235
size_t size = sizeof(atexit_py_callback*) * (size_t)state->callback_len;
236236
r = (atexit_py_callback**)PyMem_Realloc(state->callbacks, size);
237237
if (r == NULL) {
238-
state->callback_len -= 16;
239238
_PyAtExit_UNLOCK(state);
240239
return PyErr_NoMemory();
241240
}

0 commit comments

Comments
 (0)