]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: remove possible memory leaks [coverity scan]
authorKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2025 12:49:02 +0000 (13:49 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Mar 2025 12:49:02 +0000 (13:49 +0100)
commit52a6e45bfe5ddee1fed20f2f4f7542cac6bf13c9
treee673c902e638762721efa9e86501ee54420444c6
parent8097dd31c24cb7f10d404ec5f756f9f5a7c248a1
lslogins: remove possible memory leaks [coverity scan]

The column can be specified more than once. In this case, the code
will gather the column data multiple times, resulting in a memory
leak.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/lslogins.c