X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=readotucommand.cpp;h=2a0d33fe352b8e6f4621fd5d336b63ccfb5824b4;hp=eeb8cd6e3d910d30e7fde7b6d20947a693d739ed;hb=cd10743907df223b7dd5b3a3deb20fde758b8ed7;hpb=cfb66eb46a9678a751a8f21f3ea740dffd525f5e diff --git a/readotucommand.cpp b/readotucommand.cpp index eeb8cd6..2a0d33f 100644 --- a/readotucommand.cpp +++ b/readotucommand.cpp @@ -43,6 +43,8 @@ int ReadOtuCommand::execute(){ read->read(&*globaldata); if (globaldata->getFormat() == "shared") { groupMap->readMap(); + + if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap; } globaldata->gGroupmap = groupMap; shared = new SharedCommand();