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