]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: fix path_cxt leak in credential loading
authorKarel Zak <kzak@redhat.com>
Wed, 20 May 2026 10:44:11 +0000 (12:44 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 May 2026 10:44:11 +0000 (12:44 +0200)
commitc88bf7ff7aafa2129d76d6b6395e4b250aa92dcf
treecd133c28b9318d534fd422ba89e497d8adf4e9d5
parent0293c3da7ab9add1092e40cd37eb6a49a0dcbd6d
agetty: fix path_cxt leak in credential loading

The ul_new_path() result was never freed. Use goto to ensure
ul_unref_path() is called on all exit paths.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/credentials.c