diff options
Diffstat (limited to 'siplib/siplib.c')
-rw-r--r-- | siplib/siplib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/siplib/siplib.c b/siplib/siplib.c index c58a47a..b891f79 100644 --- a/siplib/siplib.c +++ b/siplib/siplib.c @@ -1610,7 +1610,7 @@ void *sip_api_malloc(size_t nbytes) { void *mem; - if ((mem = PyMem_Malloc(nbytes)) == NULL) + if ((mem = PyMem_RawMalloc(nbytes)) == NULL) PyErr_NoMemory(); return mem; @@ -1622,7 +1622,7 @@ void *sip_api_malloc(size_t nbytes) */ void sip_api_free(void *mem) { - PyMem_Free(mem); + PyMem_RawFree(mem); } |