Skip to content

Commit

Permalink
Fix resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Oct 5, 2024
1 parent a16a02f commit adcfea0
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 adcfea0

Please sign in to comment.