https://github.com/python/cpython/commit/20eaf4d5dff7fa20f8a745450fef760f0923eb52
commit: 20eaf4d5dff7fa20f8a745450fef760f0923eb52
branch: main
author: Nikita Sobolev <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-02-16T08:33:17+03:00
summary:

gh-115503: Fix `run_presite` error handling (#115504)

files:
M Python/pylifecycle.c

diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 5e5db98481150e..b354c033ae7727 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);

_______________________________________________
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]

Reply via email to