Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test_frame: add missing Py_DECREF(code)
  • Loading branch information
vstinner committed Oct 12, 2026
commit 760f77f36ddca2c2c763071fa09e04d9258d9b63
2 changes: 1 addition & 1 deletion tests/test_pythoncapi_compat_cext.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ test_frame(PyObject *Py_UNUSED(module), PyObject* Py_UNUSED(ignored))
#ifndef Py_LIMITED_API
assert(PyCode_Check(code));
#endif

Py_DECREF(code);
#endif

#if !defined(PYPY_VERSION) && !defined(Py_LIMITED_API)
Expand Down
Loading