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

Skip to content

Commit 5910d81

Browse files
author
Michael W. Hudson
committed
Add a missing decref -- PyErr_SetObject increfs the 'object'!
1 parent 7d6cc5b commit 5910d81

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ PySSL_SetError(PySSLObject *obj, int ret)
169169
PyTuple_SET_ITEM(v, 0, n);
170170
PyTuple_SET_ITEM(v, 1, s);
171171
PyErr_SetObject(PySSLErrorObject, v);
172+
Py_DECREF(v);
172173
return NULL;
173174
}
174175

0 commit comments

Comments
 (0)