summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/vfd_swmr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vfd_swmr.c b/test/vfd_swmr.c
index 5a9b55b..755788b 100644
--- a/test/vfd_swmr.c
+++ b/test/vfd_swmr.c
@@ -2743,7 +2743,8 @@ test_shadow_index_lookup(void)
idx[j].hdf5_page_offset, cursize, seed);
nerrors++;
}
- free(idx);
+ if (idx != NULL)
+ free(idx);
}
(void)setstate(ostate);
out: