#659: probable memory leak in v.surf.bspline
----------------------------+-----------------------------------------------
 Reporter:  hamish          |       Owner:  [email protected]
     Type:  defect          |      Status:  new                      
 Priority:  normal          |   Milestone:  6.4.0                    
Component:  Vector          |     Version:  6.4.0 RCs                
 Keywords:  v.surf.bspline  |    Platform:  All                      
      Cpu:  All             |  
----------------------------+-----------------------------------------------
 Hi,

 source:grass/trunk/vector/lidar/v.surf.bspline/mai...@#l364 has:

 {{{
 nrows = G_window_rows();
 ncols = G_window_cols();

 if (!G_alloc_matrix(nrows, ncols))
     G_fatal_error(_("Interpolation: The region resolution is too high: "
                    "%d cells. Consider to change it."), nrows * ncols);
 }}}

 is that a rather big memory leak? should it be like:

 {{{
 raster_matrix = G_alloc_matrix(nrows, ncols);

 if (!raster_matrix)
     G_fatal_error(...);
 else
     G_free_matrix(raster_matrix);
 }}}

 ?


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/659>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to