On Fri, 30 Nov 2018, 'Martin R' via sage-devel wrote:

It seems to me that the following does NOT leak.

def check_bad4(n):
        P = HasseDiagram(dig)
        for i in range(n):
            x = P.breadth_first_search(i)

You don't stop the search in first match, so the memory will be freed. Try addin break after P.breadth_first_search(i).

--
Jori Mäntysalo

Reply via email to