]> 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>
Mon, 17 Mar 2025 11:21:53 +0000 (12:21 +0100)
commit7f6fa5c9d28ae8a6b55f2586042361734b5477a8
tree9b16f720f9e64ac685211930ee3598d072bed7e0
parent87e5d6228425a3fef3de270acf485b550a9f42e0
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>
(cherry picked from commit 52a6e45bfe5ddee1fed20f2f4f7542cac6bf13c9)
login-utils/lslogins.c