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 "Carsten Blecken (JIRA)" <ax...@ws.apache.org> on 2005/04/21 03:31:23 UTC
[jira] Created: (AXISCPP-625) Memory leak for nillable types
Memory leak for nillable types
------------------------------
Key: AXISCPP-625
URL: http://issues.apache.org/jira/browse/AXISCPP-625
Project: Axis-C++
Type: Bug
Components: Deserialization
Versions: 1.5 Final
Environment: Linux RHEL3
Reporter: Carsten Blecken
Priority: Minor
In SoapDeSerializer.cpp there are five places where a xsd__boolean is allocated into a local
variable. Since the variable goes out of scope the memory needs to get deleted.
On line 1206:
xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
if (NULL != isNill && true_ == *isNill)\
{\
((cpp_type*)Array.m_Array)[nIndex] = NULL;\
m_pNode = m_pParser->next();\
m_pNode = NULL;\
continue;\
}\
Proposed replacement:
xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
if (NULL != isNill) {\
if (true_ == *isNill) {\
((cpp_type*)Array.m_Array)[nIndex] = NULL;\
m_pNode = m_pParser->next();\
m_pNode = NULL;\
delete isNill;
continue;\
} else {\
delete isNill;
}\
}\
On line 1686,1831,3503,3617:
xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
if (NULL != isNill)
{
if(true_ == *isNill)
{
m_pParser->next ();
m_pNode = NULL;
return NULL;
}
}
Proposed replacement:
xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
if (NULL != isNill)
{
if(true_ == *isNill)
{
m_pParser->next ();
m_pNode = NULL;
delete isNill;
return NULL;
} else {
delete isNill;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (AXISCPP-625) Memory leak for nillable types
Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-625?page=all ]
Dushshantha Chandradasa closed AXISCPP-625:
-------------------------------------------
Resolution: Fixed
somebody has fixed the problem so i close the the Jira.
> Memory leak for nillable types
> ------------------------------
>
> Key: AXISCPP-625
> URL: http://issues.apache.org/jira/browse/AXISCPP-625
> Project: Axis-C++
> Type: Bug
> Components: Client - Deserialization
> Versions: 1.5 Final
> Environment: Linux RHEL3
> Reporter: Carsten Blecken
> Assignee: Dushshantha Chandradasa
> Priority: Minor
>
> In SoapDeSerializer.cpp there are five places where a xsd__boolean is allocated into a local
> variable. Since the variable goes out of scope the memory needs to get deleted.
> On line 1206:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
> if (NULL != isNill && true_ == *isNill)\
> {\
> ((cpp_type*)Array.m_Array)[nIndex] = NULL;\
> m_pNode = m_pParser->next();\
> m_pNode = NULL;\
> continue;\
> }\
> Proposed replacement:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
> if (NULL != isNill) {\
> if (true_ == *isNill) {\
> ((cpp_type*)Array.m_Array)[nIndex] = NULL;\
> m_pNode = m_pParser->next();\
> m_pNode = NULL;\
> delete isNill;
> continue;\
> } else {\
> delete isNill;
> }\
> }\
> On line 1686,1831,3503,3617:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
> if (NULL != isNill)
> {
> if(true_ == *isNill)
> {
> m_pParser->next ();
> m_pNode = NULL;
> return NULL;
> }
> }
> Proposed replacement:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
> if (NULL != isNill)
> {
> if(true_ == *isNill)
> {
> m_pParser->next ();
> m_pNode = NULL;
> delete isNill;
> return NULL;
> } else {
> delete isNill;
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (AXISCPP-625) Memory leak for nillable types
Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-625?page=all ]
Dushshantha Chandradasa reassigned AXISCPP-625:
-----------------------------------------------
Assign To: Dushshantha Chandradasa
> Memory leak for nillable types
> ------------------------------
>
> Key: AXISCPP-625
> URL: http://issues.apache.org/jira/browse/AXISCPP-625
> Project: Axis-C++
> Type: Bug
> Components: Client - Deserialization
> Versions: 1.5 Final
> Environment: Linux RHEL3
> Reporter: Carsten Blecken
> Assignee: Dushshantha Chandradasa
> Priority: Minor
>
> In SoapDeSerializer.cpp there are five places where a xsd__boolean is allocated into a local
> variable. Since the variable goes out of scope the memory needs to get deleted.
> On line 1206:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
> if (NULL != isNill && true_ == *isNill)\
> {\
> ((cpp_type*)Array.m_Array)[nIndex] = NULL;\
> m_pNode = m_pParser->next();\
> m_pNode = NULL;\
> continue;\
> }\
> Proposed replacement:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);\
> if (NULL != isNill) {\
> if (true_ == *isNill) {\
> ((cpp_type*)Array.m_Array)[nIndex] = NULL;\
> m_pNode = m_pParser->next();\
> m_pNode = NULL;\
> delete isNill;
> continue;\
> } else {\
> delete isNill;
> }\
> }\
> On line 1686,1831,3503,3617:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
> if (NULL != isNill)
> {
> if(true_ == *isNill)
> {
> m_pParser->next ();
> m_pNode = NULL;
> return NULL;
> }
> }
> Proposed replacement:
> xsd__boolean * isNill = getAttributeAsBoolean("nil", 0);
> if (NULL != isNill)
> {
> if(true_ == *isNill)
> {
> m_pParser->next ();
> m_pNode = NULL;
> delete isNill;
> return NULL;
> } else {
> delete isNill;
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira