[bug_8765] double free fixed. 52/18752/2
Cedric Delamarre [Mon, 5 Dec 2016 10:32:04 +0000 (11:32 +0100)]
  test_run core bug_8765 mode_nwni_profiling

Change-Id: I6570baa853c85888036b57e6be8bda3abd7430b8

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

index ca459de..e17d9d2 100644 (file)
@@ -1583,15 +1583,6 @@ GenericType* Sparse::remove(typed_list* _pArgs)
         }
     }
 
-    //free allocated data
-    for (int i = 0 ; i < iDims ; i++)
-    {
-        if (pArg[i] != (*_pArgs)[i])
-        {
-            delete pArg[i];
-        }
-    }
-
     delete[] piIndexes;
     delete[] piViewDims;