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

This commit is contained in:
Nikita Sobolev 2024-02-16 08:33:17 +03:00 committed by GitHub
parent 321d13fd2b
commit 20eaf4d5df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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);