]> granicus.if.org Git - python/commitdiff
Fixed refleak in _testcapi.test_s_code.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 15 May 2008 22:06:59 +0000 (22:06 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Thu, 15 May 2008 22:06:59 +0000 (22:06 +0000)
Modules/_testcapimodule.c

index 2e68a6693161e2afa02de57831aa7ef6de569d79..7c28538e04282bd7949fb5a9e1ff12118d970b67 100644 (file)
@@ -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;
 }