SF bug #592645 fix memory leak in socket.getaddrinfo

This commit is contained in:
Neal Norwitz 2002-08-09 03:37:42 +00:00
parent 9d416a7c10
commit 90128ba22c
1 changed files with 2 additions and 0 deletions

View File

@ -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);