mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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),
|
PyUnicode_AS_UNICODE(result),
|
||||||
size+1))
|
size+1))
|
||||||
return result;
|
return result;
|
||||||
|
Py_DECREF(result);
|
||||||
}
|
}
|
||||||
return PyErr_SetExcFromWindowsErr(PyExc_WindowsError, GetLastError());
|
return PyErr_SetExcFromWindowsErr(PyExc_WindowsError, GetLastError());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue