You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2016/04/06 18:17:23 UTC
[2/2] activemq-cpp git commit:
https://issues.apache.org/jira/browse/AMQCPP-596
https://issues.apache.org/jira/browse/AMQCPP-596
Use proper array delete operator.
(cherry picked from commit 2774f6a14f29fd882d82c838f76652f9afe61f3e)
Project: http://git-wip-us.apache.org/repos/asf/activemq-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-cpp/commit/3aaa85c8
Tree: http://git-wip-us.apache.org/repos/asf/activemq-cpp/tree/3aaa85c8
Diff: http://git-wip-us.apache.org/repos/asf/activemq-cpp/diff/3aaa85c8
Branch: refs/heads/3.9.x
Commit: 3aaa85c803fa1ed58c61f924e60ca62f95779632
Parents: b42765c
Author: Timothy Bish <ta...@gmail.com>
Authored: Wed Apr 6 12:16:40 2016 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Wed Apr 6 12:17:15 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/3aaa85c8/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/3aaa85c8/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/3aaa85c8/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;
}
}