mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)
* commit '50ca26f3ec428de408040335f2a2999e750d98b3': Updated the passthru VOL connector: * snprintf --> sprintf (for Windows compat) * tabs --> spaces * removed spurious parens from returns * Changed the logging macro to something less clash-prone Make sure to free copy of VOL connector's name when H5VL_register_connector fails
This commit is contained in:
commit
1e4c7bf9c9
@ -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() */
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user