diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-09 03:37:42 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-09 03:37:42 +0000 |
| commit | 90128ba22c9dc3b4335053d6251afee78f0f93e2 (patch) | |
| tree | c1fad7bf13582ea31fd3964a8f48e61a0e6ef783 /Modules/socketmodule.c | |
| parent | 9d416a7c10298fd8325e13c5e48f7196d4dbeff9 (diff) | |
| download | cpython-git-90128ba22c9dc3b4335053d6251afee78f0f93e2.tar.gz | |
SF bug #592645 fix memory leak in socket.getaddrinfo
Diffstat (limited to 'Modules/socketmodule.c')
| -rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 616c8362ee..7461f60fa3 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); |
