summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/RSAPrivateKey.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-05-06 19:40:41 +0000
committerAnthony Neal <aneal@zeroc.com>2002-05-06 19:40:41 +0000
commitf932fa6a1a49971249ef430f9cca043653ce7709 (patch)
treebff484f6731df55e5b9a77aab28c416036dbed78 /cpp/src/IceSSL/RSAPrivateKey.cpp
parentUpdated to fix test script bug. (diff)
downloadice-f932fa6a1a49971249ef430f9cca043653ce7709.tar.bz2
ice-f932fa6a1a49971249ef430f9cca043653ce7709.tar.xz
ice-f932fa6a1a49971249ef430f9cca043653ce7709.zip
Updated to fix a bug that Purify detected in RSAPrivateKey.cpp (that Marc
detectged before Purify! ;) ) and to get rid of some commented out code.
Diffstat (limited to 'cpp/src/IceSSL/RSAPrivateKey.cpp')
-rw-r--r--cpp/src/IceSSL/RSAPrivateKey.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/IceSSL/RSAPrivateKey.cpp b/cpp/src/IceSSL/RSAPrivateKey.cpp
index 9c6bdf4e29c..7499c69ecdc 100644
--- a/cpp/src/IceSSL/RSAPrivateKey.cpp
+++ b/cpp/src/IceSSL/RSAPrivateKey.cpp
@@ -106,6 +106,8 @@ IceSSL::OpenSSL::RSAPrivateKey::byteSeqToKey(const ByteSeq& keySeq)
_privateKey = d2i_RSAPrivateKey(rsapp, privKeyBuffpp, (long)keySeq.size());
+ delete [] privateKeyBuffer;
+
if (_privateKey == 0)
{
IceSSL::PrivateKeyParseException pkParseException(__FILE__, __LINE__);
@@ -114,8 +116,5 @@ IceSSL::OpenSSL::RSAPrivateKey::byteSeqToKey(const ByteSeq& keySeq)
throw pkParseException;
}
-
- // ML: Not deleted if an exception is raised!
- delete [] privateKeyBuffer;
}