HDF5: fix trouble on closing dataset during import of void and undefined list items... 18/10518/2
Antoine ELIAS [Mon, 18 Feb 2013 14:08:49 +0000 (15:08 +0100)]
Change-Id: I6e6f41794cb139a646eb5576fb013cd34322e8a1

scilab/modules/hdf5/sci_gateway/cpp/sci_import_from_hdf5.cpp

index 384c096..63648e8 100644 (file)
@@ -281,6 +281,9 @@ static bool import_void(int _iDatasetId, int _iItemPos, int *_piAddress, char *_
         printError(&sciErr, 0);
         return false;
     }
+
+    //close void dataset
+    closeDataSet(_iDatasetId);
     return true;
 }
 
@@ -302,6 +305,9 @@ static bool import_undefined(int _iDatasetId, int _iItemPos, int *_piAddress, ch
         printError(&sciErr, 0);
         return false;
     }
+
+    //close undefined dataset
+    closeDataSet(_iDatasetId);
     return true;
 }