Skip to content

Commit 10c3589

Browse files
Switch to the raw allocator.
1 parent 9f74f7b commit 10c3589

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_xxinterpchannelsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ API.. The module does not create any objects that are shared globally.
7676

7777

7878
#define GLOBAL_MALLOC(TYPE) \
79-
PyMem_NEW(TYPE, 1)
79+
PyMem_RawMalloc(sizeof(TYPE))
8080
#define GLOBAL_FREE(VAR) \
81-
PyMem_Free(VAR)
81+
PyMem_RawFree(VAR)
8282

8383

8484
static PyInterpreterState *

0 commit comments

Comments
 (0)