diff --git a/src/ecopcr.c b/src/ecopcr.c index b00490f..2d7d777 100644 --- a/src/ecopcr.c +++ b/src/ecopcr.c @@ -417,8 +417,7 @@ int main(int argc, char **argv) taxonomy = read_taxonomy(prefix); seq = ecoseq_iterator(prefix); - - + checkedSequence = 0; positiveSequence= 0; amplifiatCount = 0; @@ -427,13 +426,13 @@ int main(int argc, char **argv) { checkedSequence++; /** - * check if the sequence should be ignored + * check if current sequence should be ignored **/ if ( (g > 0) && (eco_is_taxid_ignored(excluded_taxid, g, taxonomy->taxons->taxon[seq->taxid].taxid)) ) goto next; /** - * check the sequence is included + * check current sequence is included **/ if ( (r > 0) && (!eco_is_taxid_included(taxonomy, restricted_taxid, r, taxonomy->taxons->taxon[seq->taxid].taxid)) ) goto next; @@ -519,6 +518,9 @@ int main(int argc, char **argv) seq = ecoseq_iterator(NULL); } + + ECOFREE(restricted_taxid, "Error: could not free restricted_taxid\n"); + ECOFREE(excluded_taxid, "Error: could not free excluded_taxid\n"); return 0; }