From 42d96dc07d74eeda01b852b8f47c7f998782e783 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 22 Nov 2011 23:56:06 -0600 Subject: [PATCH] no python objects to manage here --- Modules/posixmodule.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ac511fcee52..6555f1f511c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -7050,10 +7050,8 @@ posix_unsetenv(PyObject *self, PyObject *args) 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