From 0308166b4e11178231f337cddd70e16193182b5e Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 15 Feb 2024 11:03:43 +0300 Subject: [PATCH] gh-115503: Fix `run_presite` error handling --- Python/pylifecycle.c | 1 - 1 file changed, 1 deletion(-) 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);