diff options
author | Brett Simmers <swtaarrs@users.noreply.github.com> | 2024-02-29 17:02:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 01:02:12 +0000 |
commit | 2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4 (patch) | |
tree | af6383add3321e0395156b5b37572b77b21b629a /Python/frozen_modules | |
parent | d7ddd90308324340855ddb9cc8dda2c1ee3a5944 (diff) | |
download | cpython-2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4.tar.gz cpython-2e94a6687c1a9750e9d2408a8dff0a422aeaf0e4.zip |
gh-116099: Fix refcounting bug in `_queueobj_shared()` (gh-116164)
This code decrefs `qidobj` twice in some paths. Since `qidobj` isn't used after
the first `Py_DECREF()`, remove the others, and replace the `Py_DECREF()` with
`Py_CLEAR()` to make it clear that the variable is dead.
With this fix, `python -mtest test_interpreters -R 3:3 -mtest_queues` no longer
fails with `_Py_NegativeRefcount: Assertion failed: object has negative ref
count`.
Diffstat (limited to 'Python/frozen_modules')
0 files changed, 0 insertions, 0 deletions