nessrest icon indicating copy to clipboard operation
nessrest copied to clipboard

atexit hook prevents garbage collection from working

Open devicenull opened this issue 9 years ago • 0 comments

See http://stackoverflow.com/questions/16333054/what-are-the-implications-of-registering-an-instance-method-with-atexit-in-pytho

You're using atexit here to log out, https://github.com/tenable/nessrest/blob/master/nessrest/ness6rest.py#L113

However, this prevents the Scanner object from ever going through garbage collection. That means in a long-running app, it'll stick around forever.

devicenull avatar Jun 06 '16 20:06 devicenull