summaryrefslogtreecommitdiffstats
path: root/src/H5FPclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FPclient.c')
-rw-r--r--src/H5FPclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FPclient.c b/src/H5FPclient.c
index d5bcfdb..df29015 100644
--- a/src/H5FPclient.c
+++ b/src/H5FPclient.c
@@ -870,7 +870,7 @@ H5FP_dump_to_file(H5FD_t *file, hid_t dxpl_id)
if (H5FP_read_metadata(&mdata, (int)sap_read.md_size,
(int)H5FP_sap_rank) != FAIL) {
- if (H5FD_fphdf5_write_real(file, dxpl_id, sap_read.addr,
+ if (H5FD_fphdf5_write_real(file, new_dxpl_id, sap_read.addr,
(int)sap_read.md_size, mdata) == FAIL) {
HDfree(mdata);
HGOTO_ERROR(H5E_FPHDF5, H5E_WRITEERROR, FAIL, "can't write metadata to file");
@@ -884,7 +884,7 @@ H5FP_dump_to_file(H5FD_t *file, hid_t dxpl_id)
done:
if (new_dxpl_id > 0)
- H5Pclose(new_dxpl_id);
+ H5I_dec_ref(new_dxpl_id);
FUNC_LEAVE_NOAPI(ret_value);
}