Skip to content

Commit

Permalink
small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed May 28, 2017
1 parent da187bc commit 4158576
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions psutil/_psutil_sunos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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<env_count; i++) {
if (! env[i])
break;
Expand Down

0 comments on commit 4158576

Please sign in to comment.