https://github.com/python/cpython/commit/ca12a744abd02d0d36adfb1444c1ba31623d617d
commit: ca12a744abd02d0d36adfb1444c1ba31623d617d
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-04-26T12:14:14+02:00
summary:
gh-132781: fix refleaks in `crossinterp_exceptions.h` post gh-132782 (#132989)
files:
M Python/crossinterp_exceptions.h
diff --git a/Python/crossinterp_exceptions.h b/Python/crossinterp_exceptions.h
index 857c4d1e379a0e..ca4ca1cf123e49 100644
--- a/Python/crossinterp_exceptions.h
+++ b/Python/crossinterp_exceptions.h
@@ -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);
}
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]