CID 1365222 fixed : Variable "iDimsArraytempo" going out of scope 36/18636/1
Clément DAVID [Wed, 26 Oct 2016 13:44:30 +0000 (15:44 +0200)]
Change-Id: Id8717eec0819a2b5a878680737e60525f2ad3205

scilab/modules/randlib/sci_gateway/cpp/sci_grand.cpp

index bf3dfa7..12c1ddc 100644 (file)
@@ -436,7 +436,7 @@ types::Function::ReturnValue sci_grand(types::typed_list &in, int _iRetCount, ty
         types::Double* pDblIn = in[0]->getAs<types::Double>();
         if (meth == 14 || meth == 13)//'mul' or 'markov'
         {
-            int* iDimsArraytempo = new int[2];
+            int iDimsArraytempo[2];
             iDimsArraytempo[0] = in[3]->getAs<types::Double>()->getSize();
             if (meth == 14)
             {