]> git.donarmstrong.com Git - mothur.git/blobdiff - parselistcommand.cpp
fixed memory leak of groupmap in reads
[mothur.git] / parselistcommand.cpp
index d9925ad40ecd02cc1580e7d087b6b5acb3514831..73fb56593c781bcd0cee4e432318fd9ba82b1577 100644 (file)
@@ -135,6 +135,7 @@ int ParseListCommand::execute(){
                        }
                        
                        //set groupmap for .shared commands
+                       if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap; }
                        globaldata->gGroupmap = groupMap; 
                        
                        return 0;