summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2018-03-12 23:53:13 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2018-03-12 23:53:13 +0100
commit7cc29763f75a5bb61942db60bbea2429d09daf15 (patch)
treed7e2b7c88faf5d0ad53b3f4be304f905a02c758b /src
parent889d293b45a5b0124aea16c41294860b3905a262 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/src/buildconfig.c1
1 files changed, 1 insertions, 0 deletions
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;
}