summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2024-02-16 05:33:17 (GMT)
committerGitHub <noreply@github.com>2024-02-16 05:33:17 (GMT)
commit20eaf4d5dff7fa20f8a745450fef760f0923eb52 (patch)
tree21315e5a0860d84dc7c53ba06d3d24e2dc27d63e /Python
parent321d13fd2b858d76cd4cbd03e6d8c4cba307449e (diff)
downloadcpython-20eaf4d5dff7fa20f8a745450fef760f0923eb52.zip
cpython-20eaf4d5dff7fa20f8a745450fef760f0923eb52.tar.gz
cpython-20eaf4d5dff7fa20f8a745450fef760f0923eb52.tar.bz2
gh-115503: Fix `run_presite` error handling (#115504)
Diffstat (limited to 'Python')
-rw-r--r--Python/pylifecycle.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 5e5db98..b354c03 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1109,7 +1109,6 @@ run_presite(PyThreadState *tstate)
);
if (presite_modname == NULL) {
fprintf(stderr, "Could not convert pre-site module name to unicode\n");
- Py_DECREF(presite_modname);
}
else {
PyObject *presite = PyImport_Import(presite_modname);