Commit 6a9122c
allocated.
On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if
co_extra->ce_extras could not be allocated.
On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in
co_extra->ce_extras to NULL.
1 parent 275104e commit 6a9122c
2 files changed
+17
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | | - | |
865 | | - | |
866 | | - | |
| 864 | + | |
| 865 | + | |
867 | 866 | | |
868 | 867 | | |
869 | | - | |
870 | 868 | | |
871 | 869 | | |
872 | 870 | | |
873 | 871 | | |
| 872 | + | |
874 | 873 | | |
875 | 874 | | |
876 | 875 | | |
| |||
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
| 881 | + | |
| 882 | + | |
882 | 883 | | |
883 | 884 | | |
884 | | - | |
| 885 | + | |
885 | 886 | | |
886 | 887 | | |
887 | | - | |
| 888 | + | |
888 | 889 | | |
889 | 890 | | |
890 | 891 | | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
895 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
| |||
0 commit comments