Commit fa27870
Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit 5e33378)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent 9dbb09f commit fa27870
2 files changed
Lines changed: 2 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Core and Builtins
- Modules/_ctypes
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
| 1484 | + | |
1484 | 1485 | | |
1485 | 1486 | | |
1486 | 1487 | | |
| |||
0 commit comments