diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-15 22:06:59 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-05-15 22:06:59 (GMT) |
commit | b645bc7b775b85e3520a561413905a7a1c4ae11c (patch) | |
tree | 751e3cac935620a693ca38f6c73ea31b1acb201d /Modules | |
parent | 2402e93c41173c357b5b19349cfa5753e89248a9 (diff) | |
download | cpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.zip cpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.tar.gz cpython-b645bc7b775b85e3520a561413905a7a1c4ae11c.tar.bz2 |
Fixed refleak in _testcapi.test_s_code.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 1 |
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; } |