From 3ced4508b4a55d2b78f0d04841c724a2a0a46b6d Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 6 Nov 2019 08:48:50 +0100 Subject: [PATCH] Add missing globfree(), found using -fsanitize=address Signed-off-by: Joachim Nilsson --- src/syslogd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syslogd.c b/src/syslogd.c index 8e9e42c..f59ceec 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -2814,6 +2814,7 @@ static int cfparse(FILE *fp, struct files *newf) cfparse(fpi, newf); fclose(fpi); } + globfree(&gl); continue; }