Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak in Python 3.6.9 #5

Open
gildomedeiros opened this issue Mar 24, 2023 · 1 comment
Open

Memory Leak in Python 3.6.9 #5

gildomedeiros opened this issue Mar 24, 2023 · 1 comment

Comments

@gildomedeiros
Copy link

gildomedeiros commented Mar 24, 2023

Hi,

fist of all, just wanted to thank you for this amazing library, its awesome!!!

just noticed significant memory leak when using pyStag in a python 3.6.9, its easy to notice in the piece of code below, just wondering if this has been reported before?

thanks again, its an aboslute amazing library

import pyStag as stag
...
while True:
stag_det = stag.Detector(15, 7, False)
stag_det.detect(img)

...

@gildomedeiros
Copy link
Author

Hello hello

in local repo, just added a contrusctor to EDInterface to delete some stuff, and it worked fine :) , most of the memory lead is gone

EDInterface::~EDInterface()
{
delete edgeMap;
delete edLines;
}

not sure if that's the recommemded approach though :)

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant