summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-15 22:06:59 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-15 22:06:59 (GMT)
commitb645bc7b775b85e3520a561413905a7a1c4ae11c (patch)
tree751e3cac935620a693ca38f6c73ea31b1acb201d /Modules/_testcapimodule.c
parent2402e93c41173c357b5b19349cfa5753e89248a9 (diff)
downloadcpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.zip
cpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.tar.gz
cpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.tar.bz2
Fixed refleak in _testcapi.test_s_code.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c1
1 files changed, 1 insertions, 0 deletions
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;
}