Commit 81574bbe authored by Neal Norwitz's avatar Neal Norwitz

SF bug #592645 fix memory leak in socket.getaddrinfo

parent 69da25ec
...@@ -2704,6 +2704,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment