gh-145376: Fix refleaks and double decref for code in Python/ (#145666)

This commit is contained in:
Pieter Eendebak 2026-03-10 10:46:13 +01:00 committed by GitHub
parent 19676e5fc2
commit 3f7141dac9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View file

@ -2499,7 +2499,7 @@ sys_remote_exec_impl(PyObject *module, int pid, PyObject *script)
}
if (PySys_Audit("sys.remote_exec", "iO", pid, script) < 0) {
return NULL;
goto error;
}
debugger_script_path = PyBytes_AS_STRING(path);