summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-03-18 22:40:57 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-03-18 22:40:57 (GMT)
commit82b9cb00fdea4f976853598957ca58c7ee221d85 (patch)
tree890ef78902d8a2798c79c828fc397f2788a7ad8e
parent0f31ebc8290a676c00c54d72db768c971604dcda (diff)
downloadhdf5-82b9cb00fdea4f976853598957ca58c7ee221d85.zip
hdf5-82b9cb00fdea4f976853598957ca58c7ee221d85.tar.gz
hdf5-82b9cb00fdea4f976853598957ca58c7ee221d85.tar.bz2
[svn-r24834] bug dox to avoid segfault when dcreate_anon fails
-rw-r--r--src/H5VLiod.c2
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;
}