Commit e3c70317 authored by loring's avatar loring

fix alloc-dealloc-mismatch (operator new [] vs free) of matnames

in avt transform manager


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23761 18c085ea-50e0-402c-830e-de6fd14e8384
parent 95e411e3
......@@ -1888,6 +1888,10 @@ avtTransformManager::CSGToDiscrete(avtDatabaseMetaData *md,
//
// Mark C. Miller, Wed Aug 22 09:01:36 PDT 2012
// Fixed leak of matnames
//
// Burlen Loring, Mon Jul 14 15:52:49 PDT 2014
// fix alloc-dealloc-mismatch (operator new [] vs free) of matnames
//
// ****************************************************************************
bool
avtTransformManager::TransformMaterialDataset(avtDatabaseMetaData *md,
......@@ -1979,7 +1983,7 @@ avtTransformManager::TransformMaterialDataset(avtDatabaseMetaData *md,
delete [] matnos;
for (j = 0; j < nmats; j++)
free(matnames[j]);
delete [] matnames[j];
delete [] matnames;
if (newmat)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment