[Python-3000] Py3k-buffer branch merged back to py3k branch

Neal Norwitz nnorwitz at gmail.com
Mon Aug 20 18:37:30 CEST 2007


On 8/20/07, Travis E. Oliphant <oliphant.travis at ieee.org> wrote:
>
> > Memory leaked when allocated from:
> >  array_buffer_getbuf (arraymodule.c:1775)
> >  buffer_getbuf (bufferobject.c:28)
> >  bytes_init (bytesobject.c:807)
> >  type_call (typeobject.c:429)
>
> Hmm.  I'm not sure what memory is being leaked unless there are
> reference counting issues I'm not seeing.
>
> In bytes_init for example, that line number is a static memory
> allocation?  How is static memory being leaked?

I'm not sure if this was before or after my checkin, so the line
numbers could have been off a bit.

> The arraymodule.c malloc call should be gone now as the possible strings
> needed are now in the source code itself.

That was the only leak AFAIK.  So hopefully by removing it there
aren't any more.  Once there are tests it will be worthwhile to check
again.  I don't think I checked for refleaks.

n


More information about the Python-3000 mailing list