mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
SF bug #592645 fix memory leak in socket.getaddrinfo
This commit is contained in:
parent
9d416a7c10
commit
90128ba22c
1 changed files with 2 additions and 0 deletions
|
|
@ -2704,6 +2704,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args)
|
||||||
goto err;
|
goto err;
|
||||||
Py_XDECREF(single);
|
Py_XDECREF(single);
|
||||||
}
|
}
|
||||||
|
if (res0)
|
||||||
|
freeaddrinfo(res0);
|
||||||
return all;
|
return all;
|
||||||
err:
|
err:
|
||||||
Py_XDECREF(single);
|
Py_XDECREF(single);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue