mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r4288] Purpose:
Bug Fix Description: H5Pset_driver had a resource leak which was dropping dataset transfer IDs when switching drivers. Solution: Decrement dataset transfer ID reference count properly Platforms tested: IRIX64 6.5 (modi4)
This commit is contained in:
parent
f972e20383
commit
0d6d3eafe4
@ -1700,8 +1700,9 @@ H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info)
|
||||
}
|
||||
|
||||
/* Remove old driver */
|
||||
if (dxpl->driver_id>=0)
|
||||
H5FD_dxpl_free(dxpl->driver_id, dxpl->driver_info);
|
||||
assert(dxpl->driver_id>=0);
|
||||
H5FD_dxpl_free(dxpl->driver_id, dxpl->driver_info);
|
||||
H5I_dec_ref(dxpl->driver_id);
|
||||
|
||||
/* Add new driver */
|
||||
H5I_inc_ref(driver_id);
|
||||
|
Loading…
Reference in New Issue
Block a user