mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-132781: fix refleaks in crossinterp_exceptions.h
post gh-132782 (#132989)
This commit is contained in:
parent
8a4d4f37ab
commit
ca12a744ab
1 changed files with 2 additions and 0 deletions
|
@ -110,6 +110,7 @@ set_notshareableerror(PyThreadState *tstate, PyObject *cause, int force, const c
|
|||
}
|
||||
else {
|
||||
_ensure_notshareableerror(tstate, cause, force, msgobj);
|
||||
Py_DECREF(msgobj);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -123,6 +124,7 @@ format_notshareableerror_v(PyThreadState *tstate, PyObject *cause, int force,
|
|||
}
|
||||
else {
|
||||
_ensure_notshareableerror(tstate, cause, force, msgobj);
|
||||
Py_DECREF(msgobj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue