]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115503: Fix `run_presite` error handling (#115504)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 16 Feb 2024 05:33:17 +0000 (08:33 +0300)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2024 05:33:17 +0000 (08:33 +0300)
Python/pylifecycle.c

index 5e5db98481150e7e0db59c3a28c0b2e2711967a7..b354c033ae77274d13ed1ad42132278709b4077c 100644 (file)
@@ -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);