diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-07-05 19:52:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 19:52:33 +0100 |
commit | 5e24c80b948da6995990296cf262d9eae265e8ec (patch) | |
tree | ca0c20c8012eea7e14d34c7f1488587b88977b05 /Modules/_lsprof.c | |
parent | fd34bfe48444fdb22ff1ae78941cf621854b351f (diff) | |
download | cpython-git-5e24c80b948da6995990296cf262d9eae265e8ec.tar.gz |
[3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace (GH-94511) (#94579)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r-- | Modules/_lsprof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 703067cc74..8d754aa7e3 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -744,7 +744,7 @@ profiler_dealloc(ProfilerObject *op) if (op->flags & POF_ENABLED) { PyThreadState *tstate = PyThreadState_GET(); if (_PyEval_SetProfile(tstate, NULL, NULL) < 0) { - PyErr_WriteUnraisable((PyObject *)op); + _PyErr_WriteUnraisableMsg("When destroying _lsprof profiler", NULL); } } |