On Wednesday 29 August 2007 12:11, William Stein 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? 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.
Some of the NTL wrapper stuff has nothing whatsoever to do with a char *. I don't know about everything that mabshoff is talking about. There is a memory leak in the number field element which has to do with an NTL object not being destroyed because of my twisted view of C++ objects and cython -- this was finally thought through and understood though. -- Joel --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
