From: Benjamin Peterson Date: Wed, 23 Nov 2011 05:56:06 +0000 (-0600) Subject: no python objects to manage here X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42d96dc07d74eeda01b852b8f47c7f998782e783;p=python no python objects to manage here --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index ac511fcee5..6555f1f511 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