Skip to content

Commit

Permalink
Fix Resource Leak issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Nov 24, 2024
1 parent 3e22b87 commit 8f8d928
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/raster3d/index.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ int Rast3d_flush_index(RASTER3D_Map *map)
indexLength = map->nTiles * sizeof(long);
if (write(map->data_fd, tmp, indexLength) != indexLength) {
Rast3d_error("Rast3d_flush_index: can't write file");
Rast3d_free(tmp);
return 0;
}

Expand Down

0 comments on commit 8f8d928

Please sign in to comment.