In Table.get_entries(), netsnmptable_fetch creates a new reference to the parent netsnmp session, but does not Py_DECREF it again. This prevents the parent netsnmp session from being deallocated by Pythons reference counting / GC.
Found some more leaks using valgrind and performing long time tests. Leaks can easily aggregate to hundreds of MBs within days if netsnmptable is used in long running processes to query large tables periodically.
In Table.get_entries(), netsnmptable_fetch creates a new reference to the parent netsnmp session, but does not Py_DECREF it again. This prevents the parent netsnmp session from being deallocated by Pythons reference counting / GC.