From: Karel Zak Date: Fri, 15 Sep 2017 10:54:54 +0000 (+0200) Subject: logger: make stdin parsing more friendly to static analyzers X-Git-Tag: v2.31-rc1~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b318eb25eeb85b31e6d6c6afab512075b81cd0e;p=thirdparty%2Futil-linux.git logger: make stdin parsing more friendly to static analyzers Signed-off-by: Karel Zak --- diff --git a/misc-utils/logger.c b/misc-utils/logger.c index f6fb350cc8..5e98d01444 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -979,6 +979,8 @@ static void logger_stdin(struct logger_ctl *ctl) if (c == '\n') /* discard line terminator */ c = getchar(); } + + free(buf); } static void logger_close(const struct logger_ctl *ctl)