From a46b91fe10d1c282d7de6164d71cde491b9a4492 Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Fri, 24 Sep 2021 16:13:36 +0200 Subject: [PATCH] Missed one 'free' --- src/runtime/python/ffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/python/ffi.c b/src/runtime/python/ffi.c index bcdde6025..c964c676f 100644 --- a/src/runtime/python/ffi.c +++ b/src/runtime/python/ffi.c @@ -19,7 +19,7 @@ PgfExnType handleError(PgfExn err) PyErr_SetFromErrnoWithFilename(PyExc_IOError, err.msg); } else if (err.type == PGF_EXN_PGF_ERROR) { PyErr_SetString(PGFError, err.msg); - free((char*) err.msg); + free((char *)err.msg); } else if (err.type == PGF_EXN_OTHER_ERROR) { PyErr_SetString(PGFError, "an unknown error occured"); } @@ -452,7 +452,7 @@ match_type(PgfMarshaller *this, PgfUnmarshaller *u, PgfType ty) free(hypos[i].cid); Py_DECREF(hypos[i].type); } - free(cat); + FreePgfText(cat); return res; }