summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/RSAPrivateKey.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/RSAPrivateKey.cpp')
-rw-r--r--cpp/src/Ice/RSAPrivateKey.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/Ice/RSAPrivateKey.cpp b/cpp/src/Ice/RSAPrivateKey.cpp
index f91d1cd4d94..d099ede789f 100644
--- a/cpp/src/Ice/RSAPrivateKey.cpp
+++ b/cpp/src/Ice/RSAPrivateKey.cpp
@@ -85,7 +85,7 @@ IceSSL::OpenSSL::RSAPrivateKey::keyToByteSeq(ByteSeq& keySeq)
IceSSL::ucharToByteSeq(privateKeyBuffer, privKeySize, keySeq);
- delete []privateKeyBuffer;
+ delete [] privateKeyBuffer;
}
RSA*
@@ -110,11 +110,12 @@ IceSSL::OpenSSL::RSAPrivateKey::byteSeqToKey(const ByteSeq& keySeq)
{
IceSSL::PrivateKeyParseException pkParseException(__FILE__, __LINE__);
- pkParseException._message = "Unable to parse provided Private Key.\n" + sslGetErrors();
+ pkParseException._message = "unable to parse provided private key\n" + sslGetErrors();
throw pkParseException;
}
- delete []privateKeyBuffer;
+ // ML: Not deleted if an exception is raised!
+ delete [] privateKeyBuffer;
}