int ipfix_deinit_template_array(ipfix_exporter *exporter)
static int ipfix_deinit_template_array(ipfix_exporter *exporter)
int ipfix_deinit_template_array(ipfix_exporter *exporter){  /* FIXME: free all templates in the array!     This was our memory leak.     JanP, 2005-21-1  */  int i=0;  int ret = 0;  for (i=0; i< exporter->ipfix_lo_template_maxsize; i++) {    // try to free all templates:    ret = ipfix_deinit_template_set (exporter,	&(exporter->template_arr[i]) );    // for debugging:    DPRINTF("ipfix_deinit_template_array deinitialized template %i with success %i \n", i, ret);    // end debugging  }	free (exporter->template_arr);	exporter->template_arr = NULL;	exporter->ipfix_lo_template_maxsize = 0;	exporter->ipfix_lo_template_current_count = 0;	return 0;}