axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject svn commit: r368062 - /webservices/axis/trunk/c/src/soap/SoapSerializer.cpp
Date Wed, 11 Jan 2006 17:10:37 GMT
Author: dicka
Date: Wed Jan 11 09:10:35 2006
New Revision: 368062

URL: http://svn.apache.org/viewcvs?rev=368062&view=rev
Log:
Resolve memory leak when serializing attributes.

Modified:
    webservices/axis/trunk/c/src/soap/SoapSerializer.cpp

Modified: webservices/axis/trunk/c/src/soap/SoapSerializer.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/soap/SoapSerializer.cpp?rev=368062&r1=368061&r2=368062&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/soap/SoapSerializer.cpp (original)
+++ webservices/axis/trunk/c/src/soap/SoapSerializer.cpp Wed Jan 11 09:10:35 2006
@@ -904,7 +904,10 @@
 {
     IAnySimpleType* pSimpleType = AxisUtils::createSimpleTypeObject(pValue, type);
     
-    return serializeAsAttribute(pName, pNamespace, pSimpleType);
+    int status = serializeAsAttribute(pName, pNamespace, pSimpleType);
+    delete pSimpleType;
+    
+    return status;
 }
 
 int SoapSerializer::serializeAsAttribute( const AxisChar * pName, 



Mime
View raw message