devices/bsimsoi, USE_OMP, add missing FREE(...InstanceArray)

This commit is contained in:
rlar 2018-01-14 11:36:11 +01:00
parent 80d5614f49
commit 79919ed069
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,11 @@ B4SOIdestroy(GENmodel **inModel)
{
B4SOImodel *mod = *(B4SOImodel**) inModel;
#ifdef USE_OMP
/* free just once for all models */
FREE(mod->B4SOIInstanceArray);
#endif
while (mod) {
B4SOImodel *next_mod = B4SOInextModel(mod);
B4SOIinstance *inst = B4SOIinstances(mod);