Issue #17968: Fix memory leak in os.listxattr().

This commit is contained in:
Antoine Pitrou 2013-05-13 19:48:46 +02:00
commit 5f18791902
2 changed files with 6 additions and 2 deletions

View File

@ -91,8 +91,10 @@ Core and Builtins
Library Library
------- -------
- Issue #17968: Fix memory leak in os.listxattr().
- Issue #17606: Fixed support of encoded byte strings in the XMLGenerator - Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
.characters() and ignorableWhitespace() methods. Original patch by Sebastian characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez. Ortiz Vasquez.
- Issue #17732: Ignore distutils.cfg options pertaining to install paths if a - Issue #17732: Ignore distutils.cfg options pertaining to install paths if a

View File

@ -10119,8 +10119,10 @@ posix_listxattr(PyObject *self, PyObject *args, PyObject *kwargs)
Py_END_ALLOW_THREADS; Py_END_ALLOW_THREADS;
if (length < 0) { if (length < 0) {
if (errno == ERANGE) if (errno == ERANGE) {
PyMem_FREE(buffer);
continue; continue;
}
path_error(&path); path_error(&path);
break; break;
} }