zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: free_configuration_cache                                         *
 *                                                                            *
 * Purpose: Free memory allocated for configuration cache                     *
 *                                                                            *
 * Author: Alexei Vladishev, Aleksandrs Saveljevs                             *
 *                                                                            *
 ******************************************************************************/
free_configuration_cache

Purpose: Free memory allocated for configuration cache

Author: Alexei Vladishev, Aleksandrs Saveljevs
free_configuration_cache Purpose : Free memory allocated for configuration cache Author : Alexei Vladishev Aleksandrs Saveljevs
void	free_configuration_cache(void)
{
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	WRLOCK_CACHE;
	config = NULL;
	UNLOCK_CACHE;
	zbx_mem_destroy(config_mem);
	config_mem = NULL;
	zbx_rwlock_destroy(&config_lock);
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s()", __func__);
}
void free_configuration_cache ( void ) { zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; WRLOCK_CACHE ; config = NULL ; UNLOCK_CACHE ; zbx_mem_destroy ( config_mem ) ; config_mem = NULL ; zbx_rwlock_destroy ( & config_lock ) ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; }
Function: free_configuration_cache                                         
                                                                            
 Purpose: Free memory allocated for configuration cache                     
                                                                            
 Author: Alexei Vladishev, Aleksandrs Saveljevs
Function : free_configuration_cache Purpose : Free memory allocated for configuration cache Author : Alexei Vladishev Aleksandrs Saveljevs