Commit 25710578 authored by Benjamin Peterson's avatar Benjamin Peterson

plug refleak

parent 761e05ed
......@@ -6193,8 +6193,10 @@ posix_unsetenv(PyObject *self, PyObject *args)
s1 = PyBytes_AsString(os1);
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment