else if (format == "matrix") {
groupMap = new GroupMap(globaldata->getGroupFile());
groupMap->readMap();
+ //if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap; }
globaldata->gGroupmap = groupMap;
}
ifstream in;
openInputFile(filename, in);
matrix = new FullMatrix(in); //reads the matrix file
+ //memory leak prevention
+ //if (globaldata->gMatrix != NULL) { delete globaldata->gMatrix; }
globaldata->gMatrix = matrix; //save matrix for coverage commands
}else {
read->read(nameMap);