From 3aaa7a4f279f5605d547fea52e03e43f08b2c8e6 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 7 Apr 2020 10:51:00 -0500 Subject: Don't try to free a NULL pointer. --- test/vfd_swmr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v0.12