Commit dedac527 authored by Benjamin Peterson's avatar Benjamin Peterson

prevent double free in cleanup code (#17968)

parent 2adb6fe2
......@@ -10627,6 +10627,7 @@ posix_listxattr(PyObject *self, PyObject *args, PyObject *kwargs)
if (length < 0) {
if (errno == ERANGE) {
PyMem_FREE(buffer);
buffer = NULL;
continue;
}
path_error("listxattr", &path);
......
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