summaryrefslogtreecommitdiffstats
path: root/tools/test/perform/zip_perf.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-11-08 17:27:22 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-11-08 17:27:22 (GMT)
commit3b9e13a1b819584c91bfaa134536345a1460f44f (patch)
treeec15921ace74f90c89c989d5e75a970c2c573874 /tools/test/perform/zip_perf.c
parent0a7424c7d0664b778be9d75db373793cb2f949c9 (diff)
downloadhdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.zip
hdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.tar.gz
hdf5-3b9e13a1b819584c91bfaa134536345a1460f44f.tar.bz2
TRILAB-82 fix coverity high-impact issues
Diffstat (limited to 'tools/test/perform/zip_perf.c')
-rw-r--r--tools/test/perform/zip_perf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c
index 0636d3b..e301bb3 100644
--- a/tools/test/perform/zip_perf.c
+++ b/tools/test/perform/zip_perf.c
@@ -419,7 +419,9 @@ fill_with_random_data(Bytef *src, uLongf src_len)
buf += rc;
len -= (size_t)rc;
}
- } else {
+ HDclose(fd);
+ }
+ else {
HDfprintf(stdout, "Using random() for random data\n");
for (u = 0; u < src_len; ++u)
@@ -557,7 +559,7 @@ main(int argc, char **argv)
int opt;
prog = argv[0];
-
+
/* Initialize h5tools lib */
h5tools_init();