Skip to content

Commit

Permalink
call Py_INCREF after null check
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Aug 26, 2024
1 parent f9a7458 commit c8ada7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/interface/_zope_interface_coptimizations.c
Original file line number Diff line number Diff line change
Expand Up @@ -2517,9 +2517,9 @@ _zic_module_exec(PyObject* module)
_zic_module_state* rec = _zic_state_init(module);

rec->adapter_hooks = PyList_New(0);
Py_INCREF(rec->adapter_hooks);
if (rec->adapter_hooks == NULL)
return -1;
Py_INCREF(rec->adapter_hooks);

#if USE_STATIC_TYPES

Expand Down

0 comments on commit c8ada7e

Please sign in to comment.