Skip to content
Prev Previous commit
Next Next commit
Test a constraint.
  • Loading branch information
ericsnowcurrently committed Apr 5, 2023
commit b5396e421d1bcc6f92bfc36d4aa61a9b33f18c61
1 change: 1 addition & 0 deletions Modules/atexitmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ int
_Py_AtExit(PyInterpreterState *interp,
atexit_datacallbackfunc func, void *data)
{
assert(interp == _PyInterpreterState_GET());
atexit_callback *callback = PyMem_Malloc(sizeof(atexit_callback));
if (callback == NULL) {
PyErr_NoMemory();
Expand Down