Coverity #1321214, #1321215, #1321217, #1321220, #1321223, #1321224, #1321221, #13212...
[scilab.git] / scilab / modules / optimization / sci_gateway / cpp / sci_semidef.cpp
index 7e31a43..24284f8 100644 (file)
@@ -209,8 +209,8 @@ types::Function::ReturnValue sci_semidef(types::typed_list &in, int _iRetCount,
     C2F(spf)(&iSizeX, &iSizeB, pDblF->get(), piB, pDblC->get(), pDblX->get(), pDblZ->get(),
              pDblUl->get(), &dNu, &dAbstol, &dReltol, &dTv, &iIter, pdblWork, &iSizeWork, piWork, &iInfo);
 
-    delete pdblWork;
-    delete piWork;
+    delete[] pdblWork;
+    delete[] piWork;
 
     if (iInfo < 0)
     {