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
c9b0953b
Commit
c9b0953b
authored
May 25, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2964: fix missing INCREF.
parent
38feaf0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Misc/NEWS
Misc/NEWS
+2
-0
Objects/classobject.c
Objects/classobject.c
+3
-1
No files found.
Misc/NEWS
View file @
c9b0953b
...
...
@@ -12,6 +12,8 @@ What's new in Python 3.0b1?
Core and Builtins
-----------------
- Issue #2964: fix a missing INCREF in instancemethod_descr_get.
- Issue 2895: Don't crash when given bytes objects as keyword names.
- Issue 2798: When parsing arguments with PyArg_ParseTuple, the "s" code now
...
...
Objects/classobject.c
View file @
c9b0953b
...
...
@@ -501,8 +501,10 @@ instancemethod_call(PyObject *self, PyObject *arg, PyObject *kw)
static
PyObject
*
instancemethod_descr_get
(
PyObject
*
descr
,
PyObject
*
obj
,
PyObject
*
type
)
{
register
PyObject
*
func
=
PyInstanceMethod_GET_FUNCTION
(
descr
);
if
(
obj
==
NULL
)
if
(
obj
==
NULL
)
{
Py_INCREF
(
func
);
return
func
;
}
else
return
PyMethod_New
(
func
,
obj
);
}
...
...
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