summaryrefslogtreecommitdiffstats
path: root/src/H5Oefl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Oefl.c')
-rw-r--r--src/H5Oefl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Oefl.c b/src/H5Oefl.c
index 388aa4a..c81002b 100644
--- a/src/H5Oefl.c
+++ b/src/H5Oefl.c
@@ -341,7 +341,8 @@ H5O_efl_reset(void *_mesg)
mesg->slot[i].name = H5MM_xfree (mesg->slot[i].name);
mesg->heap_addr = HADDR_UNDEF;
mesg->nused = mesg->nalloc = 0;
- mesg->slot = H5MM_xfree(mesg->slot);
+ if(mesg->slot)
+ mesg->slot = H5MM_xfree(mesg->slot);
done:
FUNC_LEAVE(ret_value);