Commit 4300352
authored
bpo-45061: Detect Py_DECREF(Py_True) bug (pythonGH-28089)
Add a deallocator to the bool type to detect refcount bugs in C
extensions which call Py_DECREF(Py_True) or Py_DECREF(Py_False) by
mistake.1 parent 9a7ec2f commit 4300352
File tree
3 files changed
+14
-7
lines changed- Misc/NEWS.d/next/C API
- Objects
3 files changed
+14
-7
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
163 | | - | |
| 170 | + | |
164 | 171 | | |
165 | 172 | | |
166 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
1564 | 1563 | | |
1565 | | - | |
| 1564 | + | |
1566 | 1565 | | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
| 1566 | + | |
| 1567 | + | |
1571 | 1568 | | |
1572 | 1569 | | |
1573 | 1570 | | |
| |||
0 commit comments