]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Close a temporary file handle.
authorTim Kientzle <kientzle@gmail.com>
Thu, 25 Dec 2008 14:30:17 +0000 (09:30 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 25 Dec 2008 14:30:17 +0000 (09:30 -0500)
SVN-Revision: 281

libarchive/test/test_read_extract.c

index 1c93decd854364f39d0e21f8e24f4094861a2fe8..912b757dfa46d18191af770f8a711e7f38ad0b5e 100644 (file)
@@ -153,6 +153,7 @@ DEFINE_TEST(test_read_extract)
        failure("The file on disk could not be opened.");
        assert(fd != 0);
        bytes_read = read(fd, buff, FILE_BUFF_SIZE);
+       close(fd);
        failure("The file contents read from disk are the wrong size");
        assert(bytes_read == FILE_BUFF_SIZE);
        failure("The file contents on disk do not match the file contents that were put into the archive.");