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
284fa08e
Commit
284fa08e
authored
May 09, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14761: Fix potential leak on an error case in the import machinery.
parent
5ec0340c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
Python/import.c
Python/import.c
+2
-1
No files found.
Misc/ACKS
View file @
284fa08e
...
@@ -127,6 +127,7 @@ Tony Campbell
...
@@ -127,6 +127,7 @@ Tony Campbell
Brett Cannon
Brett Cannon
Mike Carlton
Mike Carlton
Terry Carroll
Terry Carroll
Damien Cassou
Lorenzo M. Catucci
Lorenzo M. Catucci
Donn Cave
Donn Cave
Charles Cazabon
Charles Cazabon
...
...
Misc/NEWS
View file @
284fa08e
...
@@ -9,6 +9,8 @@ What's New in Python 2.7.4
...
@@ -9,6 +9,8 @@ What's New in Python 2.7.4
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #14761: Fix potential leak on an error case in the import machinery.
- Issue #14699: Fix calling the classmethod descriptor directly.
- Issue #14699: Fix calling the classmethod descriptor directly.
- Issue #11603 (again): Setting __repr__ to __str__ now raises a RuntimeError
- Issue #11603 (again): Setting __repr__ to __str__ now raises a RuntimeError
...
...
Python/import.c
View file @
284fa08e
...
@@ -998,7 +998,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
...
@@ -998,7 +998,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
FILE
*
fpc
;
FILE
*
fpc
;
char
*
buf
;
char
*
buf
;
char
*
cpathname
;
char
*
cpathname
;
PyCodeObject
*
co
;
PyCodeObject
*
co
=
NULL
;
PyObject
*
m
;
PyObject
*
m
;
if
(
fstat
(
fileno
(
fp
),
&
st
)
!=
0
)
{
if
(
fstat
(
fileno
(
fp
),
&
st
)
!=
0
)
{
...
@@ -1054,6 +1054,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
...
@@ -1054,6 +1054,7 @@ load_source_module(char *name, char *pathname, FILE *fp)
return
m
;
return
m
;
error_exit:
error_exit:
Py_XDECREF
(
co
);
PyMem_FREE
(
buf
);
PyMem_FREE
(
buf
);
return
NULL
;
return
NULL
;
}
}
...
...
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