mirror of https://github.com/python/cpython
SF bug #592645 fix memory leak in socket.getaddrinfo
This commit is contained in:
parent
9d416a7c10
commit
90128ba22c
|
@ -2704,6 +2704,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args)
|
|||
goto err;
|
||||
Py_XDECREF(single);
|
||||
}
|
||||
if (res0)
|
||||
freeaddrinfo(res0);
|
||||
return all;
|
||||
err:
|
||||
Py_XDECREF(single);
|
||||
|
|
Loading…
Reference in New Issue