Changeset 27220


Ignore:
Timestamp:
08/17/22 17:41:26 (3 years ago)
Author:
Eric.Larour
Message:

CHG: fixing simple leaks.

Location:
issm/branches/trunk-larour-SLPS2022/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-SLPS2022/src/c/analyses/SealevelchangeAnalysis.cpp

    r27204 r27220  
    178178                parameters->AddObject(new DoubleMatParam(CumBslcIcePartitionEnum,bslcice_partition,npartice,1));
    179179                xDelete<IssmDouble>(partitionice);
     180                xDelete<IssmDouble>(bslcice_partition);
    180181        }
    181182
     
    189190                parameters->AddObject(new DoubleMatParam(CumBslcHydroPartitionEnum,bslchydro_partition,nparthydro,1));
    190191                xDelete<IssmDouble>(partitionhydro);
     192                xDelete<IssmDouble>(bslchydro_partition);
    191193        }
    192194
     
    200202                parameters->AddObject(new DoubleMatParam(CumBslcOceanPartitionEnum,bslcocean_partition,npartocean,1));
    201203                xDelete<IssmDouble>(partitionocean);
     204                xDelete<IssmDouble>(bslcocean_partition);
    202205        }
    203206        /*New optimized code:*/
  • issm/branches/trunk-larour-SLPS2022/src/c/modules/ModelProcessorx/CreateOutputDefinitions.cpp

    r26889 r27220  
    516516                                        char* string=NULL;
    517517                                        string = nodalvalue_name_s[j];    xDelete<char>(string);
     518                                        string = nodalvalue_definitionstrings[j];    xDelete<char>(string);
     519                                        string = nodalvalue_modelstrings[j];    xDelete<char>(string);
    518520                                }
    519521                                xDelete<char*>(nodalvalue_name_s);
Note: See TracChangeset for help on using the changeset viewer.