You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/03/01 18:36:12 UTC
svn commit: r382094 -
/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
Author: sahan
Date: Wed Mar 1 09:36:10 2006
New Revision: 382094
URL: http://svn.apache.org/viewcvs?rev=382094&view=rev
Log:
Removed a double free
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=382094&r1=382093&r2=382094&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Wed Mar 1 09:36:10 2006
@@ -794,6 +794,7 @@
len = AXIS2_STREAM_READ(in_stream, env, buffer, read_len);
if(len > 0)
{
+ buffer[len] = '\0';
((axis2_callback_info_t*)ctx)->unread_len -= len;
}
return len;
@@ -902,13 +903,6 @@
{
AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
om_builder = NULL;
- xml_reader = NULL;
- return NULL;
- }
- if(NULL == soap_builder)
- {
- AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
- om_builder = NULL;
xml_reader = NULL;
return NULL;
}