Changeset 18573


Ignore:
Timestamp:
10/03/14 16:04:24 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed some memory leaks

Location:
issm/trunk-jpl/src/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r18565 r18573  
    14851485                         J+=0.5*(surface-surfaceobs)*(surface-surfaceobs)*weight*Jdet*gauss->weight;
    14861486                 }
    1487 
     1487                 delete gauss;
     1488                 xDelete<IssmDouble>(xyz_list);
    14881489        }
    14891490
  • issm/trunk-jpl/src/c/cores/controlvalidation_core.cpp

    r18403 r18573  
    3636        delete Xpetsc;
    3737
    38         /*Allocate Gradient and current vector*/
    39         G = xNew<IssmDouble>(n);
     38        /*Allocate current vector*/
    4039        X = xNew<IssmDouble>(n);
    4140
     
    110109
    111110        /*Clean up and return*/
     111        xDelete<IssmDouble>(output);
    112112        xDelete<IssmDouble>(G);
    113113        xDelete<IssmDouble>(X);
Note: See TracChangeset for help on using the changeset viewer.