diff options
author | Thomas White <taw@physics.org> | 2010-06-02 14:56:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-02 14:56:40 +0200 |
commit | 891dc55c60e7270876ba8aea741e930273781e9f (patch) | |
tree | a87313ab9f55810df03fc82272c2faf5fa428944 | |
parent | 316eb4b161b64fefcab34e64729c98f5b3235c19 (diff) |
Close more stuff
-rw-r--r-- | src/hdf5-file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index c9b19b51..4272cbe6 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -113,6 +113,10 @@ static void cleanup(hid_t fh) type = H5Iget_type(id); if ( type == H5I_GROUP ) H5Gclose(id); + if ( type == H5I_DATASET ) H5Dclose(id); + if ( type == H5I_DATATYPE ) H5Tclose(id); + if ( type == H5I_DATASPACE ) H5Sclose(id); + if ( type == H5I_ATTR ) H5Aclose(id); } } @@ -348,6 +352,7 @@ int hdf5_read(struct hdfile *f, struct image *image) image->flags = flags; } } + H5Dclose(mask_dh); /* Read wavelength from file */ image->lambda = get_wavelength(f); |