]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #782369: Massive memory leak in array module
authorRaymond Hettinger <python@rcn.com>
Tue, 5 Aug 2003 11:23:59 +0000 (11:23 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 5 Aug 2003 11:23:59 +0000 (11:23 +0000)
commit85004cc47d807579a475da9f4367a62eb2fd72a2
tree0d0ad248efef389901dde7c76e98f605c212f1d8
parent83f5291c0fa282ef01156e7bee0c62a231a3dfda
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".

Will backport to 2.3.
Modules/arraymodule.c