Skip to content

Commit be43b74

Browse files
authored
raster/r.statistics: Fix Resource Leak issues (#5077)
1 parent 4e3e14c commit be43b74

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

raster/r.statistics/o_kurt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ int o_kurt(const char *basemap, const char *covermap, const char *outputmap,
7070

7171
G_popen_close(&stats_child);
7272
G_popen_close(&reclass_child);
73+
G_free(tab);
7374

7475
return 0;
7576
}

raster/r.statistics/o_sdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ int o_sdev(const char *basemap, const char *covermap, const char *outputmap,
7171

7272
G_popen_close(&stats_child);
7373
G_popen_close(&reclass_child);
74+
G_free(tab);
7475

7576
return 0;
7677
}

raster/r.statistics/o_skew.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ int o_skew(const char *basemap, const char *covermap, const char *outputmap,
7070

7171
G_popen_close(&stats_child);
7272
G_popen_close(&reclass_child);
73+
G_free(tab);
7374

7475
return 0;
7576
}

raster/r.statistics/o_var.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ int o_var(const char *basemap, const char *covermap, const char *outputmap,
7373

7474
G_popen_close(&stats_child);
7575
G_popen_close(&reclass_child);
76+
G_free(tab);
7677

7778
return 0;
7879
}

0 commit comments

Comments
 (0)