From 7af3eb485373d794cba40340647ce43f71c120f8 Mon Sep 17 00:00:00 2001 From: hanz Date: Fri, 7 Feb 2020 11:31:37 +0900 Subject: [PATCH] potential memory leak fix --- mercury.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mercury.c b/mercury.c index 1e7bc666..ff652445 100644 --- a/mercury.c +++ b/mercury.c @@ -2236,6 +2236,7 @@ static PyTypeObject TagReadDataType = { static void ReaderStatsData_dealloc(ReaderStatsData* self) { + Py_XDECREF(self->protocol); Py_TYPE(self)->tp_free((PyObject*)self); };