From 82b9cb00fdea4f976853598957ca58c7ee221d85 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Tue, 18 Mar 2014 17:40:57 -0500 Subject: [svn-r24834] bug dox to avoid segfault when dcreate_anon fails --- src/H5VLiod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v0.12