From a827cc0cfe7e2bb5b8b6e85e2f88b5a678774896 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Tue, 5 Jun 2007 14:27:28 +0000 Subject: [PATCH] git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/branches/refactoring@40 60f365c0-8329-0410-b2a4-ec073aeeaa1d --- src/ecopcr.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; }