mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
plug refleak
This commit is contained in:
parent
54ad0beae0
commit
e857b29fdd
1 changed files with 1 additions and 0 deletions
|
@ -3109,6 +3109,7 @@ socket_gethostname(PyObject *self, PyObject *unused)
|
|||
PyUnicode_AS_UNICODE(result),
|
||||
size+1))
|
||||
return result;
|
||||
Py_DECREF(result);
|
||||
}
|
||||
return PyErr_SetExcFromWindowsErr(PyExc_WindowsError, GetLastError());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue