Repository navigation
Commit a3feafd
committed
gh-159739: Preserve the normalization buffer on allocation failure
Save the original buffer before calling PyMem_Resize(), which overwrites
its first argument even on failure.
Backport to 3.15 and 3.14; the affected allocation spans multiple lines
on those branches.1 parent a071788 commit a3feafd
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
750 | 751 | | |
751 | 752 | | |
752 | 753 | | |
| |||
0 commit comments