diff options
Diffstat (limited to 'cpp/src/IceSSL/RSAPrivateKey.cpp')
-rw-r--r-- | cpp/src/IceSSL/RSAPrivateKey.cpp | 5 |
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; } |