diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 17:32:00 (GMT) |
---|---|---|
committer | Jacob Smith <jake.smith@hdfgroup.org> | 2018-12-18 17:50:58 (GMT) |
commit | 5efc08a06d34ceab3de1766cb651ac8978deed16 (patch) | |
tree | 22c4840dcc2ffe053abe1df5dad6c893b6a8af60 /src/H5VLint.c | |
parent | 61350bf3504272dcf6e264b02812283d2d993218 (diff) | |
parent | aadebc1b7eefa1ef0954b30f109f288f79452998 (diff) | |
download | hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.zip hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.tar.gz hdf5-5efc08a06d34ceab3de1766cb651ac8978deed16.tar.bz2 |
Merge branch 'develop' into dset_ohdr_minimize
Diffstat (limited to 'src/H5VLint.c')
-rw-r--r-- | src/H5VLint.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5VLint.c b/src/H5VLint.c index 82886cd..17dfc1f 100644 --- a/src/H5VLint.c +++ b/src/H5VLint.c @@ -625,9 +625,12 @@ H5VL_register_connector(const void *_cls, hbool_t app_ref, hid_t vipl_id) HGOTO_ERROR(H5E_VOL, H5E_CANTREGISTER, H5I_INVALID_HID, "unable to register VOL connector ID") done: - if (ret_value < 0) - if (saved) - H5FL_FREE(H5VL_class_t, saved); + if (ret_value < 0 && saved) { + if (saved->name) + H5MM_xfree(saved->name); + + H5FL_FREE(H5VL_class_t, saved); + } FUNC_LEAVE_NOAPI(ret_value) } /* end H5VL_register_connector() */ @@ -793,7 +796,6 @@ H5VL__object(hid_t id, H5I_type_t obj_type) case H5I_UNINIT: case H5I_BADID: case H5I_DATASPACE: - case H5I_REFERENCE: case H5I_VFL: case H5I_VOL: case H5I_GENPROP_CLS: |