From 3f8d9724869bcddd9f518e403eec7af27725d122 Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Mon, 23 Sep 2024 14:54:18 -0400 Subject: [PATCH 1/2] Fix Resource leak --- ps/ps.map/ps_vpoints.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ps/ps.map/ps_vpoints.c b/ps/ps.map/ps_vpoints.c index 80b29a349b1..d94e63302da 100644 --- a/ps/ps.map/ps_vpoints.c +++ b/ps/ps.map/ps_vpoints.c @@ -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; } From 1e63ca07d5fa0c45b090941ef245b0300cb9ac8c Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Mon, 23 Sep 2024 15:04:32 -0400 Subject: [PATCH 2/2] Fix Resource leak --- ps/ps.map/ps_vpoints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps/ps.map/ps_vpoints.c b/ps/ps.map/ps_vpoints.c index d94e63302da..cd320b46f11 100644 --- a/ps/ps.map/ps_vpoints.c +++ b/ps/ps.map/ps_vpoints.c @@ -268,6 +268,6 @@ int PS_vpoints_plot(struct Map_info *P_map, int vec) } /* for (line) */ fprintf(PS.fp, "\n"); - Vect_destroy_cats_struct(Cats) + Vect_destroy_cats_struct(Cats); return 0; }