You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "nadir amra (JIRA)" <ax...@ws.apache.org> on 2010/11/14 20:45:14 UTC
[jira] Commented: (AXISCPP-1054) Memory Leak in SoapHeader
destructor
[ https://issues.apache.org/jira/browse/AXISCPP-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931874#action_12931874 ]
nadir amra commented on AXISCPP-1054:
-------------------------------------
It seems at one time the header blocks were deleted in the SoapHeader destructor but for some reason was moved out to the Stub destructor, which is strange.
> Memory Leak in SoapHeader destructor
> ------------------------------------
>
> Key: AXISCPP-1054
> URL: https://issues.apache.org/jira/browse/AXISCPP-1054
> Project: Axis-C++
> Issue Type: Bug
> Components: SOAP
> Environment: Windows XP, VS6 with Compuware BoundsChecker
> Reporter: Ryan McCullough
> Fix For: current (nightly)
>
>
> SoapHeader::~SoapHeader() contains a memory leak. The m_headerBlocks member variable is never cleared.
> The following code needs to be added to the beginning of the destructor before 'm_headerBlocks.clear();':
> // deletion of Header Block RHA added
> list<IHeaderBlock*>::iterator itCurrHeaderBlock= m_headerBlocks.begin();
> while(itCurrHeaderBlock != m_headerBlocks.end())
> {
> delete *itCurrHeaderBlock;
> itCurrHeaderBlock++;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org