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

Skip to content

Commit f02bcee

Browse files
author
Michael W. Hudson
committed
Fix silly leak in test used in test_exceptions.
1 parent da0a067 commit f02bcee

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
@@ -544,6 +544,7 @@ raise_exception(PyObject *self, PyObject *args)
544544
PyTuple_SET_ITEM(exc_args, i, v);
545545
}
546546
PyErr_SetObject(exc, exc_args);
547+
Py_DECREF(exc_args);
547548
return NULL;
548549
}
549550

0 commit comments

Comments
 (0)