Skip to content

Commit

Permalink
r.mapcalc: Fix Resource Leak issue in expression.c (#5014)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamDesai authored Jan 31, 2025
1 parent be75a1d commit 3694219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions raster/r.mapcalc/expression.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ static char *format_function(const expression *e, int prec)
G_free(args[i]);
}
strcat(result, ")");
G_free(args);

return result;
}
Expand Down

0 comments on commit 3694219

Please sign in to comment.