From: Tim Kientzle Date: Thu, 25 Dec 2008 14:30:17 +0000 (-0500) Subject: Close a temporary file handle. X-Git-Tag: v2.6.0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cf1194a327dd934e2779902bdf836ec8037fac1;p=thirdparty%2Flibarchive.git Close a temporary file handle. SVN-Revision: 281 --- 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.");