]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: (test) close fd [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jul 2020 09:47:38 +0000 (11:47 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jul 2020 09:47:38 +0000 (11:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libuuid/src/test_uuid.c

index 400d6d8fc1dfa7ca62be59a7926020e9546737b0..495d850001de7d4904ace30c0f8c142cd62ca91e 100644 (file)
@@ -83,6 +83,8 @@ static int check_uuids_in_file(const char *file)
                        ret++;
                }
        }
+
+       close(fd);
        return ret;
 }