]> 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>
Thu, 2 May 2024 08:56:26 +0000 (10:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c

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