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
039e0cdc
Commit
039e0cdc
authored
Oct 25, 2012
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Plain Diff
Issue #16305: Merge fix from 3.2.
parents
9819105e
76464494
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Misc/NEWS
Misc/NEWS
+3
-0
Modules/mathmodule.c
Modules/mathmodule.c
+3
-4
No files found.
Misc/NEWS
View file @
039e0cdc
...
...
@@ -879,6 +879,9 @@ Core and Builtins
Library
-------
-
Issue
#
16305
:
Fix
a
segmentation
fault
occurring
when
interrupting
math
.
factorial
.
-
Issue
#
9803
:
Don
't close IDLE on saving if breakpoint is open.
Patch by Roger Serwy.
...
...
Modules/mathmodule.c
View file @
039e0cdc
...
...
@@ -1381,14 +1381,13 @@ factorial_odd_part(unsigned long n)
Py_DECREF
(
outer
);
outer
=
tmp
;
}
goto
done
;
Py_DECREF
(
inner
);
return
outer
;
error:
Py_DECREF
(
outer
);
done:
Py_DECREF
(
inner
);
return
outer
;
return
NULL
;
}
/* Lookup table for small factorial values */
...
...
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