Hi,
This is perhaps a silly question, but if I create a resource, say:
hid_t did = H5Dopen( loc_id, "data" );
and then test,
if (did >= 0) {
}
does it matter if I put the H5Dclose inside or outside the if-block?
Does one leak resources in the case where did < 0 and the did is not
closed? And, is the behavior the same for all the HDF api functions? I
did not see any specific mention in the docs.
Matt
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org