Skip to content

Commit 2648507

Browse files
committed
fix backport
1 parent 4607b00 commit 2648507

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Modules/_ssl.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,14 +2341,6 @@ PySSL_traverse(PyObject *op, visitproc visit, void *arg)
23412341
return 0;
23422342
}
23432343

2344-
static int
2345-
PySSL_clear(PyObject *op)
2346-
{
2347-
PySSLSocket *self = PySSLSocket_CAST(op);
2348-
Py_CLEAR(self->exc);
2349-
return 0;
2350-
}
2351-
23522344
static int
23532345
PySSL_clear(PyObject *op)
23542346
{
@@ -2357,6 +2349,7 @@ PySSL_clear(PyObject *op)
23572349
Py_CLEAR(self->ctx);
23582350
Py_CLEAR(self->owner);
23592351
Py_CLEAR(self->server_hostname);
2352+
Py_CLEAR(self->exc);
23602353
return 0;
23612354
}
23622355

0 commit comments

Comments
 (0)