Browse Source

HPCC-16418 Correct mismatched delete []

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 8 years ago
parent
commit
41f10f16aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      esp/tools/soapplus/xmldiff.cpp

+ 2 - 2
esp/tools/soapplus/xmldiff.cpp

@@ -822,7 +822,7 @@ int CXmlDiff::countDiff(const char* xpath, IPropertyTree* t1, IPropertyTree* t2,
         {
             delete diffmatrix[i];
         }
-        delete diffmatrix;
+        delete [] diffmatrix;
 
         for(i = 0; i < num1; i++)
         {
@@ -1261,7 +1261,7 @@ bool CXmlDiff::diffPtree(const char* xpath, IPropertyTree* t1, IPropertyTree* t2
             {
                 delete diffmatrix[i];
             }
-            delete diffmatrix;
+            delete [] diffmatrix;
         }
         else
         {