From 30aa1e7d3123d42d2d2c9f20a66c980004834633 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 28 Jan 1999 19:40:05 +0000 Subject: [PATCH] PyInit_zlib(): Plug a small memory leak. Jeremy is looking into the more severe ones. --- Modules/zlibmodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 9402e99fcb3..dd5804cdc29 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -834,4 +834,5 @@ PyInit_zlib() ver = PyString_FromString(ZLIB_VERSION); PyDict_SetItemString(d, "ZLIB_VERSION", ver); + Py_DECREF(ver); }