summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 62cbd42..74af27d 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -1278,6 +1278,9 @@ H5G_create(H5G_t *loc, const char *name, size_t size_hint)
}
/* insert child name into parent */
+ if (1!=H5O_link(&(grp->ent), 1)) {
+ HRETURN_ERROR(H5E_SYM, H5E_LINK, NULL, "link inc failure");
+ }
if (H5G_stab_insert(&grp_ent, rest, &(grp->ent)) < 0) {
H5O_close(&(grp->ent));
grp = H5MM_xfree(grp);