From the swig-user mailing list:
On Thu, Dec 1, 2011 at 3:38 AM, Andrew Ward <email@example.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.