Skip to content

Memory leaks #2

Open
Open
@sten-code

Description

@sten-code

You probably already know this, but in the case that you don't. This program is full of memory leaks. I've looked through this code. Everytime you do a heap allocation you don't delete it anywhere. If you do a simple while loop:

while True:
    print("Hello, World!")

This will eventually crash, because inside the visit nodes you return new PyNone() and never clean them up. Inside the while loop visit you evaluate the condition, but never delete the condition object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions