projects
/
scilab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix hdf5 locked file by listvar_in_hdf5 and import_from_hdf5 functions
[scilab.git]
/
scilab
/
modules
/
hdf5
/
src
/
c
/
h5_readDataFromFile.c
diff --git
a/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
b/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
index
43b4a74
..
e9ec59a
100644
(file)
--- a/
scilab/modules/hdf5/src/c/h5_readDataFromFile.c
+++ b/
scilab/modules/hdf5/src/c/h5_readDataFromFile.c
@@
-924,6
+924,12
@@
int readCommonSparseComplexMatrix(int _iDatasetId, int _iComplex, int _iRows, in
return -1;
}
+ status = H5Dclose(_iDatasetId);
+ if (status < 0)
+ {
+ return -1;
+ }
+
return 0;
}
@@
-970,6
+976,12
@@
int readBooleanSparseMatrix(int _iDatasetId, int _iRows, int _iCols, int _iNbIte
return -1;
}
}
+
+ status = H5Dclose(_iDatasetId);
+ if (status < 0)
+ {
+ return -1;
+ }
return 0;
}