diff options
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f87ebe0..829fd38 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -1263,7 +1263,7 @@ idna_converter(PyObject *obj, struct maybe_idna *data) return 0; } if (!PyBytes_Check(obj3)) { - Py_DECREF(obj2); + Py_DECREF(obj3); PyErr_SetString(PyExc_TypeError, "encoding of hostname failed to return bytes"); return 0; } |