From: Barry Warsaw Date: Thu, 28 Jan 1999 19:40:05 +0000 (+0000) Subject: PyInit_zlib(): Plug a small memory leak. Jeremy is looking into the X-Git-Tag: v1.5.2b2~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30aa1e7d3123d42d2d2c9f20a66c980004834633;p=thirdparty%2FPython%2Fcpython.git PyInit_zlib(): Plug a small memory leak. Jeremy is looking into the more severe ones. --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 9402e99fcb30..dd5804cdc29a 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); }