diff options
Diffstat (limited to 'Python/asdl.c')
-rw-r--r-- | Python/asdl.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Python/asdl.c b/Python/asdl.c index ccd8714..225df6e 100644 --- a/Python/asdl.c +++ b/Python/asdl.c @@ -8,18 +8,12 @@ asdl_seq_new(int size, PyArena *arena) size_t n = sizeof(asdl_seq) + (size ? (sizeof(void *) * (size - 1)) : 0); - seq = (asdl_seq *)malloc(n); + seq = (asdl_seq *)PyArena_Malloc(arena, n); if (!seq) { PyErr_NoMemory(); return NULL; } - PyArena_AddMallocPointer(arena, (void *)seq); memset(seq, 0, n); seq->size = size; return seq; } - -void -asdl_seq_free(asdl_seq *seq) -{ -} |