diff options
-rw-r--r-- | src/H5VLiod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5VLiod.c b/src/H5VLiod.c index 92d6538..444bb79 100644 --- a/src/H5VLiod.c +++ b/src/H5VLiod.c @@ -2980,7 +2980,7 @@ done: /* If the operation is synchronous and it failed at the server, or it failed locally, then cleanup and return fail */ if(NULL == ret_value) { - if(dset->common.obj_name) { + if(name && dset->common.obj_name) { HDfree(dset->common.obj_name); dset->common.obj_name = NULL; } |