Fix memory leak.

This commit is contained in:
Martin v. Löwis 2006-05-15 05:51:36 +00:00
parent 100344817c
commit e3edaea33d
1 changed files with 1 additions and 0 deletions

View File

@ -1855,6 +1855,7 @@ posix_listdir(PyObject *self, PyObject *args)
free(wnamebuf);
return NULL;
}
free(wnamebuf);
return d;
}
/* Drop the argument parsing error as narrow strings