summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorMatthias Gerstner2017-02-27 12:03:57 +0100
committerMatthias Gerstner2017-02-27 12:31:28 +0100
commit1db2468106cbd6f1cd5002562f42b9ac019b104f (patch)
treed30e0b145d2dea0b0c14189ff428ca8fb389ac75 /term-utils/agetty.c
parentunshare: add note about sysfs and procfs (diff)
downloadkernel-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
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c3
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':