diff options
author | tpaviot <tpaviot@gmail.com> | 2012-01-12 22:11:56 +0100 |
---|---|---|
committer | tpaviot <tpaviot@gmail.com> | 2012-01-15 15:15:31 +0100 |
commit | b11c2697bf711583f590b0c202591602a97d43f8 (patch) | |
tree | 57d60e53450187a79d2df46f5d4e9a285212661b | |
parent | 21887e7f7a41b76867a906d24c78dba97512f509 (diff) | |
download | oce-b11c2697bf711583f590b0c202591602a97d43f8.tar.gz oce-b11c2697bf711583f590b0c202591602a97d43f8.zip |
[cppcheck-error-fix][mismatch-allocation-deallocation]
[Message/Message_Msg.cxx:160]: (error) Mismatching allocation and deallocation: sStringBuffer
-rw-r--r-- | src/Message/Message_Msg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Message/Message_Msg.cxx b/src/Message/Message_Msg.cxx index 87c8ef92..7268c795 100644 --- a/src/Message/Message_Msg.cxx +++ b/src/Message/Message_Msg.cxx @@ -157,7 +157,7 @@ Message_Msg& Message_Msg::Arg (const Standard_CString theString) char * sStringBuffer = new char [Max (strlen(theString)+1, 1024)]; sprintf (sStringBuffer, aFormat.ToCString(), theString); TCollection_ExtendedString aStr ( sStringBuffer ); - delete sStringBuffer; + delete [] sStringBuffer; sStringBuffer = 0; // replace the format placeholder by the actual string |