3 Feb 07:57
[ swig-Bugs-3447426 ] memory leak in vector.__getitem__
<SourceForge.net>
2012-02-03 06:57:56 GMT
2012-02-03 06:57:56 GMT
Bugs item #3447426, was opened at 2011-12-01 12:57 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3447426&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: python Group: None >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: szager (szager) Assigned to: szager (szager) Summary: memory leak in vector.__getitem__ Initial Comment: >From the swig-user mailing list: On Thu, Dec 1, 2011 at 3:38 AM, Andrew Ward <andrew.derek.ward <at> gmail.com> wrote: > In the process I have found a bug in the Python std::vector implementation. > The __getitem__ method has two versions, one takes an index, the other takes > a slice object. The version that takes a slice object returns a new std::vector > but does not use SWIG_POINTER_OWN and therefore leaks memory. ----------------------------------------------------------------------(Continue reading)
RSS Feed