Beispiel #1
0
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");

	/* flush the state of the destinations */
	if (ds_persistent_state)
		ds_flusher_routine(0, NULL);

	ds_partition_t *part_it = partitions, *aux;

	while (part_it) {
		ds_destroy_data(part_it);
		aux = part_it;
		part_it = part_it->next;

		ds_disconnect_db(aux);
		pkg_free(aux->db_handle);
		shm_free(aux);
	}

	/* destroy blacklists */
	destroy_ds_bls();

        /* destroy probing list */
        if (ds_probing_list)
            free_int_list(ds_probing_list, NULL);
}
Beispiel #2
0
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");
	ds_destroy_list();

	/* destroy blacklists */
	destroy_ds_bls();
}
Beispiel #3
0
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");

	/* flush the state of the destinations */
	ds_flusher_routine(0, NULL);

	ds_destroy_data();

	/* destroy blacklists */
	destroy_ds_bls();
}