Coverity #1321227 fixed 88/18288/2
Dhruv Khattar [Wed, 22 Jun 2016 08:07:29 +0000 (13:07 +0530)]
Change-Id: I7aec2488f6dc80103c653f1753b0281ff4b7843a

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;