From ca285c71250b6af7cdcd05500f672fe50c5f81ad Mon Sep 17 00:00:00 2001 From: Christian Menges Date: Fri, 21 Jun 2024 16:23:52 +0200 Subject: [PATCH] in_docker: fix memory leak caused by conversion error Signed-off-by: Christian Menges --- plugins/in_docker/cgroup_v2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/in_docker/cgroup_v2.c b/plugins/in_docker/cgroup_v2.c index b44633c7d2b..2844e1319bd 100644 --- a/plugins/in_docker/cgroup_v2.c +++ b/plugins/in_docker/cgroup_v2.c @@ -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;