Repository navigation
Commit ba04abb
committed
Fix PyListBuilder_ExtendArraySteal()
Always clear the array on error. Previously, only one error path was
covered: two code paths didn't clear the array.
Update PyListBuilder_ExtendArray(): mention that nitem must not be
negative.1 parent 297af71 commit ba04abb
2 files changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4676 | 4676 | | |
4677 | 4677 | | |
4678 | 4678 | | |
4679 | | - | |
| 4679 | + | |
| 4680 | + | |
4680 | 4681 | | |
4681 | 4682 | | |
4682 | 4683 | | |
| |||
4711 | 4712 | | |
4712 | 4713 | | |
4713 | 4714 | | |
4714 | | - | |
4715 | | - | |
4716 | | - | |
4717 | | - | |
4718 | | - | |
4719 | 4715 | | |
4720 | 4716 | | |
4721 | 4717 | | |
| |||
4748 | 4744 | | |
4749 | 4745 | | |
4750 | 4746 | | |
4751 | | - | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
4752 | 4754 | | |
0 commit comments