Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b645bc7

Browse files
committed
Fixed refleak in _testcapi.test_s_code.
1 parent 2402e93 commit b645bc7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_testcapimodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ test_s_code(PyObject *self)
504504
if (PyArg_ParseTuple(tuple, "z:test_s_code2", &value) < 0)
505505
return NULL;
506506

507+
Py_DECREF(tuple);
507508
Py_RETURN_NONE;
508509
}
509510

0 commit comments

Comments
 (0)