ret =  ipfix_unlock_mutex(exporter, TEMPLATE); if (ret != 0 ) { fprintf (stderr, "ipfix_remove_template: Freeing mutex failed!\n"); return -1;  }
int ipfix_remove_template(ipfix_exporter *exporter, uint16_t template_id){	int ret = 0;		// TODO: maybe, we have to clean up unclean templates too:	int found_index = ipfix_find_template(exporter,template_id, COMMITED);		if (found_index >= 0) {		ret = ipfix_deinit_template_set (exporter, &((*exporter).template_arr[found_index]));	}else {		fprintf(stderr, "Template ID %u not found, removing template failed!\n", template_id);		return -1;	}	return ret;}