Show More
@@ -817,7 +817,7 b' static const char *index_deref(indexObje' | |||
|
817 | 817 | { |
|
818 | 818 | if (self->inlined && pos > 0) { |
|
819 | 819 | if (self->offsets == NULL) { |
|
820 | self->offsets = malloc(self->raw_length * | |
|
820 | self->offsets = PyMem_Malloc(self->raw_length * | |
|
821 | 821 | sizeof(*self->offsets)); |
|
822 | 822 | if (self->offsets == NULL) |
|
823 | 823 | return (const char *)PyErr_NoMemory(); |
@@ -1031,7 +1031,7 b' static void _index_clearcaches(indexObje' | |||
|
1031 | 1031 | self->cache = NULL; |
|
1032 | 1032 | } |
|
1033 | 1033 | if (self->offsets) { |
|
1034 |
|
|
|
1034 | PyMem_Free(self->offsets); | |
|
1035 | 1035 | self->offsets = NULL; |
|
1036 | 1036 | } |
|
1037 | 1037 | if (self->nt) { |
General Comments 0
You need to be logged in to leave comments.
Login now