[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23

tpaviot tpaviot at gmail.com
Fri Feb 24 18:50:34 UTC 2012


The following commit has been merged in the upstream branch:
commit b11c2697bf711583f590b0c202591602a97d43f8
Author: tpaviot <tpaviot at gmail.com>
Date:   Thu Jan 12 22:11:56 2012 +0100

    [cppcheck-error-fix][mismatch-allocation-deallocation]
    
    [Message/Message_Msg.cxx:160]: (error) Mismatching allocation and deallocation: sStringBuffer

diff --git a/src/Message/Message_Msg.cxx b/src/Message/Message_Msg.cxx
index 87c8ef9..7268c79 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

-- 
OCE packaging



More information about the debian-science-commits mailing list