[issue41977] ctypes array inside structure requires explicit garbage collection

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41977] ctypes array inside structure requires explicit garbage collection

2020-10-08 Thread Maximilian Pichler
New submission from Maximilian Pichler : If we initialize a `Structure` with two fields as... ```python s = S() s.x = (c_int * 10**8)() s.y = s.x ``` ...and then delete it with ```del s```, the memory allocated for the array is not freed until `gc.collect()` is called. If instead we initalize