]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: fix a memory leak when parsing \S in issue files
authorMatthias Gerstner <matthias.gerstner@suse.de>
Mon, 27 Feb 2017 11:03:57 +0000 (12:03 +0100)
committerMatthias Gerstner <matthias.gerstner@suse.de>
Mon, 27 Feb 2017 11:31:28 +0000 (12:31 +0100)
term-utils/agetty.c

index 8ac08f57cfd00a9f11fc1ff6bedbc413a0e9d8ca..449dfef3c463fa129f9b5de7f011ae578ed31061 100644 (file)
@@ -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':