[Python-checkins] cpython (2.7): no python objects to manage here

benjamin.peterson python-checkins at python.org
Wed Nov 23 06:56:36 CET 2011


http://hg.python.org/cpython/rev/123c959203ae
changeset:   73719:123c959203ae
branch:      2.7
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Nov 22 23:56:06 2011 -0600
summary:
  no python objects to manage here

files:
  Modules/posixmodule.c |  4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7050,10 +7050,8 @@
         return NULL;
 
     err = unsetenv(s1);
-    if (err) {
-        Py_DECREF(s1);
+    if (err)
         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