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); }
void correllation_state_free(CorrellationState *self) { correllation_state_deinit_instance(self); g_free(self); }