From: Pawel Date: Fri, 30 Nov 2012 11:35:12 +0000 (+0400) Subject: 0023532: Mismatching allocation and deallocation: anAsciiString, CDM_COutMessageDrive... X-Git-Tag: V6_6_0_beta~207 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=08b86c1dfc38b159540587c90642cc2681a90abd;p=occt-copy.git 0023532: Mismatching allocation and deallocation: anAsciiString, CDM_COutMessageDriver.cxx Replaced 'delete' with 'delete []' when deallocating array. --- diff --git a/src/CDM/CDM_COutMessageDriver.cxx b/src/CDM/CDM_COutMessageDriver.cxx index 2d6cd7107b..634cc1c3b5 100755 --- a/src/CDM/CDM_COutMessageDriver.cxx +++ b/src/CDM/CDM_COutMessageDriver.cxx @@ -48,5 +48,5 @@ void CDM_COutMessageDriver::Write (const Standard_ExtString aString) // Output cout << anAsciiString << flush; - delete anAsciiString; + delete [] anAsciiString; }