Skip to content

Commit

Permalink
r.horizon: address coverity scan 'Null pointer dereferences'
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Apr 17, 2024
1 parent efb595f commit 68c4336
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions raster/r.horizon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,6 @@ void calculate_raster_mode(const Settings *settings, const Geometry *geometry,
angle * rad2deg);

Rast_write_history(shad_filename, &history);
if (shad_filename)
G_free(shad_filename);
G_free(shad_filename);
}
}

0 comments on commit 68c4336

Please sign in to comment.