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
9c04257b
Commit
9c04257b
authored
Feb 15, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deallocation of array objects when allocation ran out of memory.
parent
c7cf36e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Misc/NEWS
Misc/NEWS
+11
-0
Modules/arraymodule.c
Modules/arraymodule.c
+1
-0
No files found.
Misc/NEWS
View file @
9c04257b
...
...
@@ -4,6 +4,17 @@ Python News
(
editors
:
check
NEWS
.
help
for
information
about
editing
NEWS
using
ReST
.)
What
's New in Python 2.5.2?
=============================
*Release date: XX-Feb-2008*
Extension Modules
-----------------
- Fix deallocation of array objects when allocation ran out of memory.
What'
s
New
in
Python
2.5.2
c1
?
=============================
...
...
Modules/arraymodule.c
View file @
9c04257b
...
...
@@ -439,6 +439,7 @@ newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr)
else
{
op
->
ob_item
=
PyMem_NEW
(
char
,
nbytes
);
if
(
op
->
ob_item
==
NULL
)
{
_Py_ForgetReference
(
op
);
PyObject_Del
(
op
);
return
PyErr_NoMemory
();
}
...
...
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