Changeset 9309


Ignore:
Timestamp:
08/11/11 17:08:03 (14 years ago)
Author:
Mathieu Morlighem
Message:

some more leaks

Location:
issm/trunk/src/c/objects/Bamg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Bamg/Geometry.cpp

    r9306 r9309  
    606606                        double lv10=Norme2(v10);
    607607                        //check that its length is not 0
    608                         if(lv10==0)_error_("Length of edge %i is 0",i);
     608                        if(lv10==0){
     609                                delete [] next_p;
     610                                delete [] head_v;
     611                                delete [] eangle;
     612                                _error_("Length of edge %i is 0",i);
     613                        }
    609614                        //compute angle in [-Pi Pi]
    610615                        eangle[i] = atan2(v10.y,v10.x);
  • issm/trunk/src/c/objects/Bamg/Mesh.cpp

    r9306 r9309  
    122122                                int i2 = Tho.GetId(t[2]);
    123123                                if (i0<0 || i1<0 || i2<0){
     124                                        delete [] refv;
    124125                                        _error_("i0<0 || i1<0 || i2< 0");
    125126                                }
     
    15461547                //check that we have been through all subdomains
    15471548                if (k!= nbsubdomains){
     1549                        delete [] colorT;
    15481550                        _error_("k!= nbsubdomains");
    15491551                }
     
    16591661                        if (k != i){
    16601662                                delete [] len;
     1663                                delete [] colorV;
    16611664                                _error_("problem in Edge4 construction: k != i");
    16621665                        }
     
    53195322                        }
    53205323                }
    5321                 if (bfind!=Gh.nbcurves) _error_("problem generating number of curves (%i found in the geometry but %i curve found in the mesh)",Gh.nbcurves,bfind);
     5324                if (bfind!=Gh.nbcurves){
     5325                        delete [] bcurve;
     5326                        _error_("problem generating number of curves (%i found in the geometry but %i curve found in the mesh)",Gh.nbcurves,bfind);
     5327                }
    53225328
    53235329                // method in 2 + 1 step
Note: See TracChangeset for help on using the changeset viewer.