diff options
author | Karel Zak | 2017-09-15 12:54:54 +0200 |
---|---|---|
committer | Karel Zak | 2017-09-15 12:54:54 +0200 |
commit | 8b318eb25eeb85b31e6d6c6afab512075b81cd0e (patch) | |
tree | e999ad38979e56858f1c209b7baddad13a0d7be8 | |
parent | rfkill: fix coding style and error messages (diff) | |
download | kernel-qcow2-util-linux-8b318eb25eeb85b31e6d6c6afab512075b81cd0e.tar.gz kernel-qcow2-util-linux-8b318eb25eeb85b31e6d6c6afab512075b81cd0e.tar.xz kernel-qcow2-util-linux-8b318eb25eeb85b31e6d6c6afab512075b81cd0e.zip |
logger: make stdin parsing more friendly to static analyzers
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | misc-utils/logger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c index f6fb350cc..5e98d0144 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) |