From b645bc7b775b85e3520a561413905a7a1c4ae11c Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Thu, 15 May 2008 22:06:59 +0000 Subject: Fixed refleak in _testcapi.test_s_code. --- Modules/_testcapimodule.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 2e68a66..7c28538 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; } -- cgit v0.12