From 20eaf4d5dff7fa20f8a745450fef760f0923eb52 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 16 Feb 2024 08:33:17 +0300 Subject: gh-115503: Fix `run_presite` error handling (#115504) --- Python/pylifecycle.c | 1 - 1 file changed, 1 deletion(-) (limited to 'Python/pylifecycle.c') diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 5e5db984811..b354c033ae7 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); -- cgit v1.2.3