X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=collect.cpp;fp=collect.cpp;h=76481d1739c2f652b60028c592aabe18d3d54736;hb=599af78a6ea4916919d460a131e2d0dffa28d35e;hp=ee46ef5928d8be156af4e1875304b633539e5147;hpb=b01e4c8527e66f227eff16cf296eeadf060306b6;p=mothur.git diff --git a/collect.cpp b/collect.cpp index ee46ef5..76481d1 100644 --- a/collect.cpp +++ b/collect.cpp @@ -46,6 +46,10 @@ void Collect::getCurve(int increment = 1){ for(int i=0;ireset(); } + + delete lookup; + delete rank; + delete ccd; } catch(exception& e) { cout << "Standard Error: " << e.what() << " has occurred in the Collect class Function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; @@ -151,6 +155,13 @@ try { for(int i=0;ireset(); } + + //memory cleanup + delete ccd; + for (int i = 0; i < lookup.size(); i++) { + delete lookup[i]; + } + } catch(exception& e) { cout << "Standard Error: " << e.what() << " has occurred in the Collect class Function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";