summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-29 21:37:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-29 21:37:26 (GMT)
commite857b29fdd7d9dd0f300875f20635431793a1d33 (patch)
tree0c5d1c292c414c3ea4fbd595e634442e97547600 /Modules/socketmodule.c
parent54ad0beae0ff5b4b400fceaa788115c0cff1243e (diff)
downloadcpython-e857b29fdd7d9dd0f300875f20635431793a1d33.zip
cpython-e857b29fdd7d9dd0f300875f20635431793a1d33.tar.gz
cpython-e857b29fdd7d9dd0f300875f20635431793a1d33.tar.bz2
plug refleak
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c1
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());
}