0023532: Mismatching allocation and deallocation: anAsciiString, CDM_COutMessageDrive...
authorPawel <pawel-kowalski@wp.pl>
Fri, 30 Nov 2012 11:35:12 +0000 (15:35 +0400)
committerPawel <pawel-kowalski@wp.pl>
Fri, 30 Nov 2012 11:35:12 +0000 (15:35 +0400)
Replaced 'delete' with 'delete []' when deallocating array.

src/CDM/CDM_COutMessageDriver.cxx

index 2d6cd71..634cc1c 100755 (executable)
@@ -48,5 +48,5 @@ void CDM_COutMessageDriver::Write (const Standard_ExtString aString)
 
   //    Output
   cout << anAsciiString << flush;
-  delete anAsciiString;
+  delete [] anAsciiString;
 }