Skip to content

Commit

Permalink
in_docker: fix memory leak caused by conversion error
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Menges <[email protected]>
  • Loading branch information
Garfield96 authored and edsiper committed Jun 24, 2024
1 parent 7060979 commit ca285c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_docker/cgroup_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ static uint64_t get_docker_mem_limit(struct flb_docker *ctx, char *id)
if (c != 1) {
flb_plg_error(ctx->ins, "error scanning used mem_limit from %s",
limit_file);
flb_free(line);
flb_free(limit_file);
fclose(f);
return 0;
Expand Down

0 comments on commit ca285c7

Please sign in to comment.