Commit 4df452c
committed
gh-145989: Fix double Py_DECREF in pyexpat ExternalEntityParserCreate
Remove redundant Py_DECREF(self) from three error paths in
ExternalEntityParserCreate_impl(). The dealloc of new_parser
already decrements the parent reference via Py_CLEAR(self->parent).
Use Py_NewRef() for the parent assignment for clarity.1 parent 36b5284 commit 4df452c
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | | - | |
1090 | 1089 | | |
1091 | 1090 | | |
1092 | 1091 | | |
| |||
1097 | 1096 | | |
1098 | 1097 | | |
1099 | 1098 | | |
1100 | | - | |
| 1099 | + | |
1101 | 1100 | | |
1102 | 1101 | | |
1103 | 1102 | | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | | - | |
1109 | 1107 | | |
1110 | 1108 | | |
1111 | 1109 | | |
1112 | 1110 | | |
1113 | 1111 | | |
1114 | | - | |
1115 | 1112 | | |
1116 | 1113 | | |
1117 | 1114 | | |
| |||
1125 | 1122 | | |
1126 | 1123 | | |
1127 | 1124 | | |
1128 | | - | |
1129 | 1125 | | |
1130 | 1126 | | |
1131 | 1127 | | |
| |||
0 commit comments