[asterisk-scf-commits] asterisk-scf/integration/ice.git branch "ice-3.4.1-patch2" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue May 31 16:06:12 CDT 2011
branch "ice-3.4.1-patch2" has been created
at e38bccf535eec1b87fe84353d29dc964b33a8ce3 (commit)
- Log -----------------------------------------------------------------
commit e38bccf535eec1b87fe84353d29dc964b33a8ce3
Author: Kevin P. Fleming <kpfleming at digium.com>
Date: Tue May 31 16:05:27 2011 -0500
Import "Patch #2 for Ice 3.4.1" from ZeroC forums; corrects a memory
leak in IceSSL for C++ (on Windows only)
http://www.zeroc.com/forums/patches/5368-patch-2-ice-3-4-1-memory-leak-icessl-c-windows-only.html
diff --git a/cpp/src/IceSSL/TransceiverI.cpp b/cpp/src/IceSSL/TransceiverI.cpp
index b5994f8..26f7af1 100644
--- a/cpp/src/IceSSL/TransceiverI.cpp
+++ b/cpp/src/IceSSL/TransceiverI.cpp
@@ -116,6 +116,9 @@ IceSSL::TransceiverI::initialize()
if(!_ssl)
{
BIO_free(bio);
+#ifdef ICE_USE_IOCP
+ BIO_free(_iocpBio);
+#endif
SecurityException ex(__FILE__, __LINE__);
ex.reason = "openssl failure";
throw ex;
@@ -293,6 +296,14 @@ IceSSL::TransceiverI::close()
_ssl = 0;
}
+#ifdef ICE_USE_IOCP
+ if(_iocpBio)
+ {
+ BIO_free(_iocpBio);
+ _iocpBio = 0;
+ }
+#endif
+
assert(_fd != INVALID_SOCKET);
try
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/ice.git
More information about the asterisk-scf-commits
mailing list