]> Savannah Git Hosting - gnulib.git/commit
readutmp: Fix memory leak introduced by last commit.
authorBruno Haible <bruno@clisp.org>
Thu, 31 Aug 2023 09:31:11 +0000 (11:31 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 31 Aug 2023 09:31:11 +0000 (11:31 +0200)
commit3af1d7b0ce3a8e3ae565e7cea10cee6fd7cb8109
tree4f621fa9b78c3d9c3546e3b564f3aa143e2f5f8c
parent1e6a26f9312bb47e070f94b17b14dc1a6ffbb74f
readutmp: Fix memory leak introduced by last commit.

* lib/readutmp.c (read_utmp_from_systemd): If num_sessions == 0 and
sessions != NULL, do call free (sessions).
ChangeLog
lib/readutmp.c