import hypermatrix fixed. 40/15240/3
Cedric Delamarre [Thu, 18 Sep 2014 12:01:47 +0000 (14:01 +0200)]
a=rand(3,3,3);
export_to_hdf5(filename, "a");
import_from_hdf5(filename);
export_to_hdf5(filename, "a");

Change-Id: I1ff92ec46ffeada5f946eb21a8eb6e61024a489a

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

index 767d4cb..f3b343b 100644 (file)
@@ -1202,6 +1202,7 @@ static bool import_hypermat(int* pvCtx, int _iDatasetId, int _iVarType, int _iIt
     // get data of first item for check the type of mlist
     char** pstData = new char*[iSize];
     iRet = readStringMatrix(iItemDataset, pstData);
+    freeStringMatrix(iItemDataset, pstData);
     if (iRet || strcmp(pstData[0], "hm") != 0)
     {
         delete[] pstData;