mirror of
https://github.com/python/cpython.git
synced 2025-11-09 01:51:26 +00:00
[3.13] gh-139748: Fix socket.if_nametoindex() Argument Clinic (#139815)
gh-139748: Fix socket.if_nametoindex() Argument Clinic Fix a reference leak.
This commit is contained in:
parent
8234841e5b
commit
7b49ec784a
2 changed files with 7 additions and 4 deletions
|
|
@ -7098,7 +7098,7 @@ Returns a list of network interface information (index, name) tuples.");
|
|||
|
||||
/*[clinic input]
|
||||
_socket.socket.if_nametoindex
|
||||
oname: object(converter="PyUnicode_FSConverter")
|
||||
oname: unicode_fs_encoded
|
||||
/
|
||||
|
||||
Returns the interface index corresponding to the interface name if_name.
|
||||
|
|
@ -7106,7 +7106,7 @@ Returns the interface index corresponding to the interface name if_name.
|
|||
|
||||
static PyObject *
|
||||
_socket_socket_if_nametoindex_impl(PySocketSockObject *self, PyObject *oname)
|
||||
/*[clinic end generated code: output=f7fc00511a309a8e input=662688054482cd46]*/
|
||||
/*[clinic end generated code: output=f7fc00511a309a8e input=242c01253c533053]*/
|
||||
{
|
||||
#ifdef MS_WINDOWS
|
||||
NET_IFINDEX index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue