Opened 12 years ago

Closed 12 years ago

#659 closed defect (fixed)

probable memory leak in

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.0
Component: Vector Version: 6.4.0 RCs
Keywords: Cc:
CPU: All Platform: All



source:grass/trunk/vector/lidar/ 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)



Change History (1)

comment:1 Changed 12 years ago by mmetz

Resolution: fixed
Status: newclosed

Right, raster_matrix was allocated twice for some obscure reason. Fixed in all branches with the recent overhaul of the lidar tools.

Note: See TracTickets for help on using tickets.