Fix memory leak.
This commit is contained in:
parent
100344817c
commit
e3edaea33d
|
@ -1855,6 +1855,7 @@ posix_listdir(PyObject *self, PyObject *args)
|
||||||
free(wnamebuf);
|
free(wnamebuf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
free(wnamebuf);
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
/* Drop the argument parsing error as narrow strings
|
/* Drop the argument parsing error as narrow strings
|
||||||
|
|
Loading…
Reference in New Issue