]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsorest.cpp
fixed memory leak in collect.shared()
[mothur.git] / sharedsorest.cpp
index 429308fc1e457fd469fd1b0eb005b356496a7880..91191d5e9ec85c7b8b1f918148c9a9dfba69fa44 100644 (file)
@@ -42,6 +42,12 @@ EstOutput SorEst::getValues(vector<SharedRAbundVector*> shared) {
                 
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
                
+               delete sharedChao;
+               delete chaoS1;
+               delete chaoS2;
+               delete chaoS1Sabund;
+               delete chaoS2Sabund;
+               
                return data;
        }
        catch(exception& e) {