소스 검색

HPCC-16418 Correct mismatched delete []

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 8 년 전
부모
커밋
41f10f16aa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
         {