Skip to content

Commit

Permalink
raster/r.statistics: Fix Resource Leak issues (#5077)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Feb 10, 2025
1 parent 4e3e14c commit be43b74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions raster/r.statistics/o_kurt.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ int o_kurt(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_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 be43b74

Please sign in to comment.