Coverity #1321093 fixed 26/18326/3
Dhruv Khattar [Wed, 29 Jun 2016 21:36:19 +0000 (02:36 +0530)]
Change-Id: I33f3799f9c4df4e6500d417ab90b4ae736941976

scilab/modules/interpolation/sci_gateway/cpp/sci_cshep2d.cpp

index 59356ca..404b585 100644 (file)
@@ -106,6 +106,14 @@ types::Function::ReturnValue sci_cshep2d(types::typed_list &in, int _iRetCount,
     if (ier != 0)
     {
         Scierror(999, _("%s: Duplicate nodes or all nodes colinears (ier = %d).\n"), "cshep2d", ier);
+        delete pTListCoef;
+        delete pStr;
+        delete pInt32Cell;
+        delete pInt32Next;
+        delete pDblGrid;
+        delete pDblRMax;
+        delete pDblRW;
+        delete pDblA;
         return types::Function::Error;
     }