summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-08-09 03:37:42 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-08-09 03:37:42 (GMT)
commit90128ba22c9dc3b4335053d6251afee78f0f93e2 (patch)
treec1fad7bf13582ea31fd3964a8f48e61a0e6ef783 /Modules
parent9d416a7c10298fd8325e13c5e48f7196d4dbeff9 (diff)
downloadcpython-90128ba22c9dc3b4335053d6251afee78f0f93e2.zip
cpython-90128ba22c9dc3b4335053d6251afee78f0f93e2.tar.gz
cpython-90128ba22c9dc3b4335053d6251afee78f0f93e2.tar.bz2
SF bug #592645 fix memory leak in socket.getaddrinfo
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 616c836..7461f60 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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);