From: Alexandre Vassalotti Date: Thu, 15 May 2008 22:06:59 +0000 (+0000) Subject: Fixed refleak in _testcapi.test_s_code. X-Git-Tag: v3.0b1~318 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b645bc7b775b85e3520a561413905a7a1c4ae11c;p=python Fixed refleak in _testcapi.test_s_code. --- diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 2e68a66931..7c28538e04 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -504,6 +504,7 @@ test_s_code(PyObject *self) if (PyArg_ParseTuple(tuple, "z:test_s_code2", &value) < 0) return NULL; + Py_DECREF(tuple); Py_RETURN_NONE; }