diff options
author | Matthias Gerstner | 2017-02-27 12:03:57 +0100 |
---|---|---|
committer | Matthias Gerstner | 2017-02-27 12:31:28 +0100 |
commit | 1db2468106cbd6f1cd5002562f42b9ac019b104f (patch) | |
tree | d30e0b145d2dea0b0c14189ff428ca8fb389ac75 | |
parent | unshare: add note about sysfs and procfs (diff) | |
download | kernel-qcow2-util-linux-1db2468106cbd6f1cd5002562f42b9ac019b104f.tar.gz kernel-qcow2-util-linux-1db2468106cbd6f1cd5002562f42b9ac019b104f.tar.xz kernel-qcow2-util-linux-1db2468106cbd6f1cd5002562f42b9ac019b104f.zip |
agetty: fix a memory leak when parsing \S in issue files
-rw-r--r-- | term-utils/agetty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 8ac08f57c..449dfef3c 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': |