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
2f5a163d
Commit
2f5a163d
authored
Feb 15, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
parent
1ca93954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
Misc/NEWS
Misc/NEWS
+2
-0
Modules/_ssl.c
Modules/_ssl.c
+14
-9
No files found.
Misc/NEWS
View file @
2f5a163d
...
@@ -116,6 +116,8 @@ Core and Builtins
...
@@ -116,6 +116,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
- Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
- Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.
Patch by Suman Saha.
...
...
Modules/_ssl.c
View file @
2f5a163d
...
@@ -519,15 +519,20 @@ _create_tuple_for_X509_NAME (X509_NAME *xname)
...
@@ -519,15 +519,20 @@ _create_tuple_for_X509_NAME (X509_NAME *xname)
goto
fail1
;
goto
fail1
;
}
}
/* now, there's typically a dangling RDN */
/* now, there's typically a dangling RDN */
if
((
rdn
!=
NULL
)
&&
(
PyList_Size
(
rdn
)
>
0
))
{
if
(
rdn
!=
NULL
)
{
rdnt
=
PyList_AsTuple
(
rdn
);
if
(
PyList_GET_SIZE
(
rdn
)
>
0
)
{
Py_DECREF
(
rdn
);
rdnt
=
PyList_AsTuple
(
rdn
);
if
(
rdnt
==
NULL
)
Py_DECREF
(
rdn
);
goto
fail0
;
if
(
rdnt
==
NULL
)
retcode
=
PyList_Append
(
dn
,
rdnt
);
goto
fail0
;
Py_DECREF
(
rdnt
);
retcode
=
PyList_Append
(
dn
,
rdnt
);
if
(
retcode
<
0
)
Py_DECREF
(
rdnt
);
goto
fail0
;
if
(
retcode
<
0
)
goto
fail0
;
}
else
{
Py_DECREF
(
rdn
);
}
}
}
/* convert list to tuple */
/* convert list to tuple */
...
...
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