From 2f9616ab8743045c38276447f743749b48b39a2a Mon Sep 17 00:00:00 2001 From: siavash119 Date: Thu, 31 Oct 2024 16:18:33 +0800 Subject: [PATCH] Fix reply map value memory leak --- src/reader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reader.c b/src/reader.c index 5960995..aa2b3f3 100644 --- a/src/reader.c +++ b/src/reader.c @@ -80,6 +80,7 @@ static void *tryParentize(const redisReadTask *task, PyObject *obj) { PyObject *last_item = PyObject_CallMethod(parent, "popitem", NULL); PyObject *last_key = PyTuple_GetItem(last_item, 0); PyDict_SetItem(parent, last_key, obj); + Py_DECREF(obj); } break; default: