Summary: | SSLIOP Connector memory leak | ||
---|---|---|---|
Product: | TAO | Reporter: | david.kinder |
Component: | SSLIOP Pluggable Protocol | Assignee: | Ossama Othman <ossama.othman> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.3 | ||
Hardware: | x86 | ||
OS: | Windows 2000 |
Description
david.kinder
2003-05-16 06:19:20 CDT
Thanks for the fix David! The intention was indeed to assign the return value of the ".out()" call to a reference to TAO_SSLIOP_Credential_ptr since the ".out()" call should not be made within the ACE_NEW_THROW_EX macro since ".out()" would be called another time after the allocation is made for the !ACE_NEW_THROWS_EXCEPTIONS case, thus negating the allocation. I'll commit your fix as soon as I get permission from our build czar. Thanks! Fixed. Mon May 19 11:05:26 2003 Ossama Othman <ossama@dre.vanderbilt.edu> ... From David Kinder <david.kinder@sophos.com> * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connector.cpp (ssliop_connect): The base_connector_.connect() call will increment the handler's reference count once more. This is not needed as we already hold a reference to the handler. Therefore we discard this second reference. Fixes a memory leak. [Bug 1506] (retrieve_credentials): For the default certificate and private key case, assign the return value of the TAO_SSLIOP_Credentials_var::out() call to a reference to a TAO_SSLIOP_Credentials_ptr. Previously, the return value was assigned to a local TAO_SSLIOP_Credentials_ptr variable that was lost when leaving the scope of this method. Fixes a memory leak. [Bug 1508] Thanks! Forgot to hit the "fixed" button. :-) |