diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-15 20:07:18 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-15 20:07:18 (GMT) |
commit | 2e4c7f1107c5d7a72c34b1f19d1a9ce5b08aa43b (patch) | |
tree | 21f20dd42522b9395d76c17fb3f2ed8ae4519e8a /src/H5FPclient.c | |
parent | 2147a97e4b13f16288a4c8e7cddbfede0b11cb73 (diff) | |
download | hdf5-2e4c7f1107c5d7a72c34b1f19d1a9ce5b08aa43b.zip hdf5-2e4c7f1107c5d7a72c34b1f19d1a9ce5b08aa43b.tar.gz hdf5-2e4c7f1107c5d7a72c34b1f19d1a9ce5b08aa43b.tar.bz2 |
[svn-r7373] Purpose:
Code cleanup
Description:
Cleanup H5Pclose code and also switch a few internal users of H5Pclose
to use H5I_dec_ref instead.
Platforms tested:
FreeBSD 4.8 (sleipnir)
too small for h5committest
Diffstat (limited to 'src/H5FPclient.c')
-rw-r--r-- | src/H5FPclient.c | 4 |
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); } |