Changeset 21690


Ignore:
Timestamp:
05/01/17 09:43:15 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/ModelProcessorx/CreateOutputDefinitions.cpp

    r21445 r21690  
    5353                                /*Free ressources:*/
    5454                                for(j=0;j<numgates;j++){
    55                                         char*       string = gatenames[j];    xDelete<char>(string);
    56                                         IssmDouble* gate   = gatesegments[j]; xDelete<IssmDouble>(gate);
     55                                        char*       string  = gatenames[j];             xDelete<char>(string);
     56                                        char*       string2 = gatedefinitionstrings[j]; xDelete<char>(string2);
     57                                        IssmDouble* gate    = gatesegments[j];          xDelete<IssmDouble>(gate);
    5758                                }
    5859                                xDelete<char*>(gatenames);
Note: See TracChangeset for help on using the changeset viewer.