Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7f987398
Commit
7f987398
authored
May 13, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17968: Fix memory leak in os.listxattr().
parent
901a2788
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Misc/NEWS
Misc/NEWS
+3
-1
Modules/posixmodule.c
Modules/posixmodule.c
+3
-1
No files found.
Misc/NEWS
View file @
7f987398
...
...
@@ -49,8 +49,10 @@ Core and Builtins
Library
-------
- Issue #17968: Fix memory leak in os.listxattr().
- 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.
- Issue #17732: Ignore distutils.cfg options pertaining to install paths if a
...
...
Modules/posixmodule.c
View file @
7f987398
...
...
@@ -10625,8 +10625,10 @@ posix_listxattr(PyObject *self, PyObject *args, PyObject *kwargs)
Py_END_ALLOW_THREADS
;
if
(
length
<
0
)
{
if
(
errno
==
ERANGE
)
if
(
errno
==
ERANGE
)
{
PyMem_FREE
(
buffer
);
continue
;
}
path_error
(
"listxattr"
,
&
path
);
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment