From: Heiko Schlittermann (HS12-RIPE) Date: Mon, 12 Mar 2018 22:53:13 +0000 (+0100) Subject: Fix memory leak during build process (Bug 2183) X-Git-Tag: exim-4_91_RC1~9 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/7cc29763f75a5bb61942db60bbea2429d09daf15 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. --- 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; }