activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject [1/2] activemq-cpp git commit: https://issues.apache.org/jira/browse/AMQCPP-596
Date Wed, 06 Apr 2016 16:17:22 GMT
Repository: activemq-cpp
Updated Branches:
  refs/heads/3.9.x b42765c42 -> 3aaa85c80
  refs/heads/master 3cd76784c -> 2774f6a14


https://issues.apache.org/jira/browse/AMQCPP-596

Use proper array delete operator.

Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/2774f6a1
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/2774f6a1
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/2774f6a1

Branch: refs/heads/master
Commit: 2774f6a14f29fd882d82c838f76652f9afe61f3e
Parents: 3cd7678
Author: Timothy Bish <tabish121@gmail.com>
Authored: Wed Apr 6 12:16:40 2016 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Wed Apr 6 12:16:40 2016 -0400

----------------------------------------------------------------------
 .../internal/security/provider/crypto/MD4MessageDigestSpi.cpp      | 2 +-
 .../internal/security/provider/crypto/MD5MessageDigestSpi.cpp      | 2 +-
 .../internal/security/provider/crypto/SHA1MessageDigestSpi.cpp     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/2774f6a1/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.cpp
b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.cpp
index e8cfcfa..927b3ad 100644
--- a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.cpp
+++ b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD4MessageDigestSpi.cpp
@@ -391,7 +391,7 @@ void MD4MessageDigestSpi::engineUpdate(decaf::nio::ByteBuffer& input)
{
         temp = new unsigned char[length];
         input.get(temp, length, 0, length);
         engineUpdate(temp, length, 0, length);
-        delete temp;
+        delete [] temp;
     }
 }
 

http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/2774f6a1/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD5MessageDigestSpi.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD5MessageDigestSpi.cpp
b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD5MessageDigestSpi.cpp
index ffdb4ba..ddeee66 100644
--- a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD5MessageDigestSpi.cpp
+++ b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/MD5MessageDigestSpi.cpp
@@ -438,7 +438,7 @@ void MD5MessageDigestSpi::engineUpdate(decaf::nio::ByteBuffer& input)
{
         temp = new unsigned char[length];
         input.get(temp, length, 0, length);
         engineUpdate(temp, length, 0, length);
-        delete temp;
+        delete [] temp;
     }
 }
 

http://git-wip-us.apache.org/repos/asf/activemq-cpp/blob/2774f6a1/activemq-cpp/src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.cpp
----------------------------------------------------------------------
diff --git a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.cpp
b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.cpp
index c92b747..e21fe7d 100644
--- a/activemq-cpp/src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.cpp
+++ b/activemq-cpp/src/main/decaf/internal/security/provider/crypto/SHA1MessageDigestSpi.cpp
@@ -330,7 +330,7 @@ void SHA1MessageDigestSpi::engineUpdate(decaf::nio::ByteBuffer& input)
{
         temp = new unsigned char[length];
         input.get(temp, length, 0, length);
         engineUpdate(temp, length, 0, length);
-        delete temp;
+        delete [] temp;
     }
 }
 


Mime
View raw message