diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-29 21:37:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-29 21:37:26 (GMT) |
commit | e857b29fdd7d9dd0f300875f20635431793a1d33 (patch) | |
tree | 0c5d1c292c414c3ea4fbd595e634442e97547600 /Modules/socketmodule.c | |
parent | 54ad0beae0ff5b4b400fceaa788115c0cff1243e (diff) | |
download | cpython-e857b29fdd7d9dd0f300875f20635431793a1d33.zip cpython-e857b29fdd7d9dd0f300875f20635431793a1d33.tar.gz cpython-e857b29fdd7d9dd0f300875f20635431793a1d33.tar.bz2 |
plug refleak
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e852287..a1a90f4 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3109,6 +3109,7 @@ socket_gethostname(PyObject *self, PyObject *unused) PyUnicode_AS_UNICODE(result), size+1)) return result; + Py_DECREF(result); } return PyErr_SetExcFromWindowsErr(PyExc_WindowsError, GetLastError()); } |