From ffd476767c244dd36718340b2e14c8461b5cb6c3 Mon Sep 17 00:00:00 2001 From: Starbuck5 <46412508+Starbuck5@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:23:07 -0800 Subject: [PATCH] Remove misplaced PyMem_Free --- src_c/draw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src_c/draw.c b/src_c/draw.c index 67b6d46811..ab5e30c76b 100644 --- a/src_c/draw.c +++ b/src_c/draw.c @@ -338,7 +338,6 @@ aalines(PyObject *self, PyObject *arg, PyObject *kwargs) float *ylist = points_buf + length; if (points_buf == NULL) { - PyMem_Free(points_buf); return RAISE(PyExc_MemoryError, "cannot allocate memory to draw aalines"); }