From 7cc29763f75a5bb61942db60bbea2429d09daf15 Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Mon, 12 Mar 2018 23:53:13 +0100 Subject: [PATCH] Fix memory leak during build process (Bug 2183) (Normally we don't care about leaks in short lived processes we use during build time. But as -fsanitize=address breaks the build in an early stage, the leak is fixed now.) Thanks to Andrew Aitchison. --- src/src/buildconfig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/src/buildconfig.c b/src/src/buildconfig.c index 804c48c67..310798fdd 100644 --- a/src/src/buildconfig.c +++ b/src/src/buildconfig.c @@ -733,6 +733,7 @@ else if (isgroup) fprintf(new, "#define FIXED_NEVER_USERS %d", j); for (i = 0; i < j; i++) fprintf(new, ", %d", (unsigned int)vector[i]); fprintf(new, "\n"); + free(vector); } continue; } -- 2.25.1