Skip to content

Commit dd20d00

Browse files
committed
Py_XDECREF in error case
1 parent fb02f9d commit dd20d00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5258,7 +5258,7 @@ _servername_callback(SSL *s, int *al, void *args)
52585258

52595259
error:
52605260
Py_XDECREF(ssl_socket);
5261-
Py_DECREF(sni_cb);
5261+
Py_XDECREF(sni_cb);
52625262
*al = SSL_AD_INTERNAL_ERROR;
52635263
ret = SSL_TLSEXT_ERR_ALERT_FATAL;
52645264
PyGILState_Release(gstate);

0 commit comments

Comments
 (0)