]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport SF bug #782369: Massive memory leak in array module
authorRaymond Hettinger <python@rcn.com>
Wed, 6 Aug 2003 06:55:09 +0000 (06:55 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 6 Aug 2003 06:55:09 +0000 (06:55 +0000)
commitdc72e5683ed2df8004077842b51efc72a8f54307
tree68d534d0fb552116934ef518e070a1b628f877e6
parent3efb725b1c01c4bd838b19fbc20934fc203f235a
Backport SF bug #782369:  Massive memory leak in array module

Fixed leak caused by switching from PyList_GetItem to PySequence_GetItem.
Added missing NULL check.
Clarified code by converting an "if" to an "else if".
Misc/NEWS
Modules/arraymodule.c