src/dg_handler.c
void free_trigger(struct trig_data *trig)
{
    free(trig->name);
    trig->name = NULL;
  
    if (trig->arglist) {
      free(trig->arglist);
      trig->arglist = NULL;
    }
    if (trig->var_list) {
      free_varlist(trig->var_list);
      trig->var_list = NULL;
    }
    if (GET_TRIG_WAIT(trig))
      event_cancel(GET_TRIG_WAIT(trig));
   
    free(trig);
}
/* 
 * Return memory used by a trigger
 * The command list is free'd when changed and when
 * shutting down.
 */
Return memory used by a trigger
The command list is free'd when changed and when
shutting down.
Return memory used by a trigger The command list is free ' d when changed and when shutting down .
void free_trigger(struct trig_data *trig)
{
    free(trig->name);
    trig->name = NULL;
    if (trig->arglist) {
      free(trig->arglist);
      trig->arglist = NULL;
    }
    if (trig->var_list) {
      free_varlist(trig->var_list);
      trig->var_list = NULL;
    }
    if (GET_TRIG_WAIT(trig))
      event_cancel(GET_TRIG_WAIT(trig));
    free(trig);
}
void free_trigger ( struct trig_data * trig ) { free ( trig -> name ) ; trig -> name = NULL ; if ( trig -> arglist ) { free ( trig -> arglist ) ; trig -> arglist = NULL ; } if ( trig -> var_list ) { free_varlist ( trig -> var_list ) ; trig -> var_list = NULL ; } if ( GET_TRIG_WAIT ( trig ) ) event_cancel ( GET_TRIG_WAIT ( trig ) ) ; free ( trig ) ; }
Return memory used by a trigger
 The command list is free'd when changed and when
 shutting down.
Return memory used by a trigger The command list is free ' d when changed and when shutting down .