add: } if (lt_dlexit()!=0){  LOG(L_CRIT, "ERROR: destroy_modules: lt_dlexit: %s\n", lt_dlerror()); }; for (a=modules; a;){ b = a->next; if (a->path) shm_free(a->path);
context: void destroy_modules(){	struct aaa_module* a;	struct aaa_module* b;		for (a=modules; a; ) {		b = a->next;		if ((a->exports)&&(a->exports->mod_destroy)&&(a->is_init))			a->exports->mod_destroy();		shm_free( a );		a = b;	}	modules=0;}