[Python-checkins] cpython (2.7): plug refleak
benjamin.peterson
python-checkins at python.org
Wed Nov 23 06:17:14 CET 2011
http://hg.python.org/cpython/rev/2060f5e03683
changeset: 73718:2060f5e03683
branch: 2.7
parent: 73713:61a5d44020cd
user: Benjamin Peterson <benjamin at python.org>
date: Tue Nov 22 23:12:49 2011 -0600
summary:
plug refleak
files:
Modules/posixmodule.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7050,8 +7050,10 @@
return NULL;
err = unsetenv(s1);
- if (err)
+ if (err) {
+ Py_DECREF(s1);
return posix_error();
+ }
/* Remove the key from posix_putenv_garbage;
* this will cause it to be collected. This has to
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list