Bug report
Bug description:
In the load_additems function of Modules/_pickle.c (which handles the ADDITEMS opcode), PyObject_GetAttr is called and returns add_func on line 6660. PyObject_GetAttr returns a new reference, but this reference is never decremented using Py_DECREF, so 2x calls to this function are added (compare to do_append function in the same file).
Pull request was made at #121136
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
In the
load_additemsfunction ofModules/_pickle.c(which handles theADDITEMSopcode), PyObject_GetAttr is called and returnsadd_funcon line 6660. PyObject_GetAttr returns a new reference, but this reference is never decremented using Py_DECREF, so 2x calls to this function are added (compare todo_appendfunction in the same file).Pull request was made at #121136
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs