Dont mix the raw/non-raw malloc/free for pagerhist
This commit is contained in:
parent
9b32842f66
commit
792a3e7db8
@ -63,7 +63,7 @@ alloc_pagerhist(size_t pagerhist_sz) {
|
||||
if (!ph) return NULL;
|
||||
ph->max_sz = pagerhist_sz;
|
||||
ph->buffer_size = MIN(1024u*1024u, ph->max_sz);
|
||||
ph->buffer = PyMem_RawMalloc(ph->buffer_size);
|
||||
ph->buffer = PyMem_Malloc(ph->buffer_size);
|
||||
if (!ph->buffer) { PyMem_Free(ph); return NULL; }
|
||||
return ph;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user