Skip to content

Commit

Permalink
ps.map: Fix memory leak issue (#4369)
Browse files Browse the repository at this point in the history
This addresses resource leak issue identified by Coverity Scan (CID : 1207906). Uses Vect_destroy_cats_struct() to destroy Cats and avoid the memory leak issue.
  • Loading branch information
ShubhamDesai authored Sep 23, 2024
1 parent 25afbfb commit 9e8874c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ps/ps.map/ps_vpoints.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,6 @@ int PS_vpoints_plot(struct Map_info *P_map, int vec)
} /* for (line) */

fprintf(PS.fp, "\n");
Vect_destroy_cats_struct(Cats);
return 0;
}

0 comments on commit 9e8874c

Please sign in to comment.