]> git.donarmstrong.com Git - mothur.git/blobdiff - shen.cpp
fixed some bugs
[mothur.git] / shen.cpp
index 152a138c279a101038566ced46339d970caef9bd..3d1c2778387a0beec550a0c6086b9fb06281338d 100644 (file)
--- a/shen.cpp
+++ b/shen.cpp
@@ -27,7 +27,9 @@ EstOutput Shen::getValues(SAbundVector* rank){
                double f0 = ace[0]-rank->getNumBins();
                
                data[0] = f0 * (1 - pow(1 - f1/n/f0, m));
-
+               
+               delete calc;
+               
                return data;
        }
        catch(exception& e) {