On Aug 29, 6:11 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On 8/29/07, Martin Albrecht <[EMAIL PROTECTED]> wrote:
>
> > It seems that none of those is a memleak because they all operate on a 
> > Python
> > objects only which should be taken care of py Cython.
>
> What does this sentence refer to?  The ntl wrapper stuff?

It was about all the other "return str(some object cases)" I posted
earlier. I will have a look, Joel claims that there are similar leaks,
so if anybody has some example code let me know.

>  Something else?
> The ntl wrapper stuff is definitely a memleak -- to fix it we just need to 
> write
> a function that converts a char* to a Python string and deletes the char*'s
> memory.  If you're referring to some other Cython code, sometimes it will
> leak if really awkward exception handling is being used -- in such cases
> the code must be rewritten.
>

malb has attached a patch to ticket #511 that uses calloc instead of
new.

>
>
> > Martin
>
> --
> William Stein

Cheers,

Michael


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to