Coverity #1321227 fixed
[scilab.git] / scilab / modules / ast / src / cpp / operations / types_power.cpp
index 19019cf..6163b58 100644 (file)
@@ -529,8 +529,8 @@ int DotPowerSpaseByDouble(Sparse* _pSp, Double* _pDouble, InternalType** _pOut)
         delete pDbl[i];
         delete pDblSp[i];
     }
-    delete pDbl;
-    delete pDblSp;
+    delete[] pDbl;
+    delete[] pDblSp;
 
     pSpTemp->finalize();
     *_pOut = pSpTemp;