#1209 memory leak in vector.__getitem__

closed-fixed
szager
python (259)
5
2012-02-03
2011-12-01
szager
No

From the swig-user mailing list:

On Thu, Dec 1, 2011 at 3:38 AM, Andrew Ward <andrew.derek.ward@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.

Discussion

  • szager
    szager
    2011-12-01

    Fixed in revision 12855.

     
  • szager
    szager
    2011-12-01

    • status: open --> open-fixed
     
  • William Fulton
    William Fulton
    2012-02-03

    • status: open-fixed --> closed-fixed
     
  • William Fulton
    William Fulton
    2012-02-03

    Closed as now fixed