From: Matthias Gerstner Date: Mon, 27 Feb 2017 11:03:57 +0000 (+0100) Subject: agetty: fix a memory leak when parsing \S in issue files X-Git-Tag: v2.30-rc1~208 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1db2468106cbd6f1cd5002562f42b9ac019b104f;p=thirdparty%2Futil-linux.git agetty: fix a memory leak when parsing \S in issue files --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8ac08f57cf..449dfef3c4 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -2448,6 +2448,9 @@ static void output_special_char(unsigned char c, struct options *op, uname(&uts); fputs(uts.sysname, stdout); } + + free(var); + break; } case 'u':