Пример #1
0
static void
_destroy_state(PatternDB *self)
{
  if (self->timer_wheel)
    timer_wheel_free(self->timer_wheel);

  g_hash_table_destroy(self->rate_limits);
  correllation_state_deinit_instance(&self->correllation);
}
Пример #2
0
void
correllation_state_free(CorrellationState *self)
{
  correllation_state_deinit_instance(self);
  g_free(self);
}