zabbix-agent2/src/libs/zbxeval/parse.c
/******************************************************************************
 *                                                                            *
 * Function: eval_clear                                                       *
 *                                                                            *
 * Purpose: free resources allocated by evaluation context                    *
 *                                                                            *
 * Parameters: ctx   - [IN] the evaluation context                            *
 *                                                                            *
 ******************************************************************************/
eval_clear

Purpose: free resources allocated by evaluation context

Parameters: ctx   - [IN] the evaluation context
eval_clear Purpose : free resources allocated by evaluation context Parameters : ctx - [ IN ] the evaluation context
static void	eval_clear(zbx_eval_context_t *ctx)
{
	if (NULL != ctx->stack.values)
	{
		int	i;
		for (i = 0; i < ctx->stack.values_num; i++)
			zbx_variant_clear(&ctx->stack.values[i].value);
		zbx_vector_eval_token_destroy(&ctx->stack);
	}
}
static void eval_clear ( zbx_eval_context_t * ctx ) { if ( NULL != ctx -> stack . values ) { int i ; for ( i = 0 ; i < ctx -> stack . values_num ; i ++ ) zbx_variant_clear ( & ctx -> stack . values [ i ] . value ) ; zbx_vector_eval_token_destroy ( & ctx -> stack ) ; } }
Function: eval_clear                                                       
                                                                            
 Purpose: free resources allocated by evaluation context                    
                                                                            
 Parameters: ctx   - [IN] the evaluation context
Function : eval_clear Purpose : free resources allocated by evaluation context Parameters : ctx - [ IN ] the evaluation context