Found and fixed memory leak at line 156 of UtilityLayer/Keywords.py due to passing list of database table ['neuron','synapse'] by reference instead of by values.
The reference to this list gets passed as the LIST keyword of the NamelessStructRUNTIME.DB.TABLE. The internals of the NamelessStruct in Line 19 of UtilityLayer/Structures.py add each keyword argument NAME to the LIST keyword before adding unique vaules for self.LIST.
Although in NamelessStructself.LIST contains only unique values, the original reference passed as the keyword argument LIST continues to accumulate values. This issue can be fixed by using python's [:] notation to create a copy of the list.
Found and fixed memory leak at line 156 of UtilityLayer/Keywords.py due to passing list of database table
['neuron','synapse']
by reference instead of by values.The reference to this list gets passed as the
LIST
keyword of theNamelessStruct
RUNTIME.DB.TABLE
. The internals of theNamelessStruct
in Line 19 of UtilityLayer/Structures.py add each keyword argumentNAME
to theLIST
keyword before adding unique vaules forself.LIST
.Although in
NamelessStruct
self.LIST
contains only unique values, the original reference passed as the keyword argumentLIST
continues to accumulate values. This issue can be fixed by using python's[:]
notation to create a copy of the list.