Skip to content

Commit

Permalink
r.horizon: address coverity scan 'Null pointer dereferences' (#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Apr 17, 2024
1 parent af7aa69 commit 2d982f1
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 2d982f1

Please sign in to comment.