Skip to content

Commit

Permalink
lib/lidar: Fix resource leak issue in raster.c (#4458)
Browse files Browse the repository at this point in the history
Fix resource leak
  • Loading branch information
ShubhamDesai authored Oct 7, 2024
1 parent 6596d49 commit 3932773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/lidar/raster.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include <grass/lidar.h>
#include <grass/vector.h>

/*------------------------------------------------------------------------------------------------*/
void P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
Expand Down Expand Up @@ -187,6 +188,7 @@ void P_Sparse_Points(struct Map_info *Out, struct Cell_head *Elaboration,
}
/*IF*/}
/*FOR*/ db_commit_transaction(driver);
Vect_destroy_line_struct(point);

return;
}
Expand Down

0 comments on commit 3932773

Please sign in to comment.