From 792a3e7db8469bf42ac929cf84b2b4c4fa101169 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Nov 2020 08:12:26 +0530 Subject: [PATCH] Dont mix the raw/non-raw malloc/free for pagerhist --- kitty/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/history.c b/kitty/history.c index 48a06897b..5ea9953bf 100644 --- a/kitty/history.c +++ b/kitty/history.c @@ -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; }