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 Feb 9, 2025
1 parent d861511 commit 9e25f7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions raster/r.statistics/o_sdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ int o_sdev(const char *basemap, const char *covermap, const char *outputmap,

G_popen_close(&stats_child);
G_popen_close(&reclass_child);
G_free(tab);

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions raster/r.statistics/o_skew.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ int o_skew(const char *basemap, const char *covermap, const char *outputmap,

G_popen_close(&stats_child);
G_popen_close(&reclass_child);
G_free(tab);

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions raster/r.statistics/o_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ int o_var(const char *basemap, const char *covermap, const char *outputmap,

G_popen_close(&stats_child);
G_popen_close(&reclass_child);
G_free(tab);

return 0;
}
Expand Down

0 comments on commit 9e25f7e

Please sign in to comment.