Merge remote-tracking branch 'origin/master' into YaSp
[scilab.git] / scilab / modules / graphics / sci_gateway / c / sci_set.c
index d7cc0b0..c15f407 100644 (file)
@@ -298,6 +298,11 @@ int sci_set(char *fname, void *pvApiCtx)
             }
         }
 
+        if (isMatrixOfString)
+        {
+            freeArrayOfString((char **)_pvData, iRows3 * iCols3);
+        }
+
         AssignOutputVariable(pvApiCtx, 1) = 0;
         ReturnArguments(pvApiCtx);
     }