logger: make stdin parsing more friendly to static analyzers

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-09-15 12:54:54 +02:00
parent e8f6060f27
commit 8b318eb25e
1 changed files with 2 additions and 0 deletions

View File

@ -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)