]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsclocks: fix FD leak
authorKarel Zak <kzak@redhat.com>
Mon, 29 Apr 2024 13:17:53 +0000 (15:17 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 May 2024 07:21:35 +0000 (09:21 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit f13ad008d915de3ffa0dd3f96ead9c1d0ba8ee93)

misc-utils/lsclocks.c

index 867f860d5b155e31a7ba09c890176242d7b9faaa..0799f65651263ddafacc83e800eea41a8c312b5f 100644 (file)
@@ -277,6 +277,7 @@ static int64_t get_namespace_offset(const char *name)
        }
 
        free(buf);
+       close(fd);
        return ret;
 }