summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 77128bd..8c8df9f 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -1326,6 +1326,7 @@ H5Pset_driver(hid_t plist_id, hid_t driver_id, const void *driver_info)
/* Remove old driver */
assert(fapl->driver_id>=0);
H5FD_fapl_free(fapl->driver_id, fapl->driver_info);
+ H5I_dec_ref(fapl->driver_id);
/* Add new driver */
H5I_inc_ref(driver_id);