From 7cf1194a327dd934e2779902bdf836ec8037fac1 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 25 Dec 2008 09:30:17 -0500 Subject: [PATCH] Close a temporary file handle. SVN-Revision: 281 --- libarchive/test/test_read_extract.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/test/test_read_extract.c b/libarchive/test/test_read_extract.c index 1c93decd8..912b757df 100644 --- a/libarchive/test/test_read_extract.c +++ b/libarchive/test/test_read_extract.c @@ -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."); -- 2.47.3