From: Nikita Sobolev Date: Fri, 16 Feb 2024 05:33:17 +0000 (+0300) Subject: gh-115503: Fix `run_presite` error handling (#115504) X-Git-Tag: v3.13.0a5~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20eaf4d5dff7fa20f8a745450fef760f0923eb52;p=thirdparty%2FPython%2Fcpython.git gh-115503: Fix `run_presite` error handling (#115504) --- diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 5e5db9848115..b354c033ae77 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);