static void terminateDetection(void) { int i; for(i=0; i<NUM_ROOTS; i++) { ndpi_tdestroy(ndpi_flows_root[i], ndpi_flow_freer); ndpi_flows_root[i] = NULL; } ndpi_exit_detection_module(ndpi_struct, free_wrapper); }
static void terminateDetection(void) { ndpi_tdestroy(ndpi_flows_root, ndpi_flow_freer); ndpi_flows_root = NULL; ndpi_exit_detection_module(ndpi_struct, free_wrapper); }