X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefact.cpp;h=cb4bbbce9a4047ae08b5f37b807be3f78c255d89;hb=599af78a6ea4916919d460a131e2d0dffa28d35e;hp=d7df01ea57d50d256ee9962939a527837d3beed1;hpb=b01e4c8527e66f227eff16cf296eeadf060306b6;p=mothur.git diff --git a/rarefact.cpp b/rarefact.cpp index d7df01e..cb4bbbc 100644 --- a/rarefact.cpp +++ b/rarefact.cpp @@ -52,11 +52,15 @@ void Rarefact::getCurve(int increment = 1, int nIters = 1000){ for(int i=0;ireset(); } + + delete lookup; + delete rank; } for(int i=0;iclose(); } + delete rcd; } catch(exception& e) { cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; @@ -130,12 +134,17 @@ try { for(int i=0;ireset(); } + + for (int i = 0; i < lookup.size(); i++) { + delete lookup[i]; + } } for(int i=0;iclose(); } - + + delete rcd; } catch(exception& e) { cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";