]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: make stdin parsing more friendly to static analyzers
authorKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 10:54:54 +0000 (12:54 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 10:54:54 +0000 (12:54 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c

index f6fb350cc843268a9a5e5c6ee931f3ad731cc8e7..5e98d014447d3524b1e2f703201e523e4ff6dece 100644 (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)