Memory Leaks detected by cppcheck #7 54/19854/2
Nimish Kapoor [Wed, 14 Mar 2018 12:03:24 +0000 (17:03 +0530)]
Change-Id: I7adb9077b53c2f898024c7abfaee73042d19dde7

scilab/modules/ast/src/cpp/types/sparse.cpp

index f01ae57..037f0d4 100644 (file)
@@ -3765,6 +3765,7 @@ GenericType* SparseBool::remove(typed_list* _pArgs)
         {
             //free pArg content
             cleanIndexesArguments(_pArgs, &pArg);
+            delete[] piNewDims;
             return new SparseBool(0, 0);
         }
         else