logger: make stdin parsing more friendly to static analyzers
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
e8f6060f27
commit
8b318eb25e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue