diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c index 2c7a1a00f..a52b7f7cb 100644 --- a/psutil/_psutil_sunos.c +++ b/psutil/_psutil_sunos.c @@ -187,12 +187,6 @@ psutil_proc_environ(PyObject *self, PyObject *args) { if (! env && env_count != 0) goto error; - py_retdict = PyDict_New(); - if (! py_retdict) { - PyErr_NoMemory(); - goto error; - } - for (i=0; i