]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: fix resource leak
authorKarel Zak <kzak@redhat.com>
Tue, 30 Apr 2024 09:01:06 +0000 (11:01 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 May 2024 07:22:36 +0000 (09:22 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit f66afeeed426a7b35b281417a9574f8ef82190f8)

term-utils/agetty.c

index 8d2d26c0fe6ab1edd444271baf8ef692750ada1e..c2e1a0cf4075ad90ca876ee3e81f579d424b018f 100644 (file)
@@ -3027,4 +3027,5 @@ static void load_credentials(struct options *op) {
                        op->autolog = str;
                }
        }
+       closedir(dir);
 }