You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/03/03 11:09:33 UTC
svn commit: r382747 -
/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
Author: sahan
Date: Fri Mar 3 02:09:31 2006
New Revision: 382747
URL: http://svn.apache.org/viewcvs?rev=382747&view=rev
Log:
More memory leak fixes
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c?rev=382747&r1=382746&r2=382747&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c Fri Mar 3 02:09:31 2006
@@ -415,9 +415,13 @@
i);
if(NULL != header)
{
+ axis2_char_t *header_ext_form =
+ AXIS2_HTTP_HEADER_TO_EXTERNAL_FORM(
+ (axis2_http_header_t*)header, env);
+
AXIS2_HTTP_RESPONSE_WRITER_PRINT_STR(response_writer, env,
- AXIS2_HTTP_HEADER_TO_EXTERNAL_FORM(
- (axis2_http_header_t*)header, env));
+ header_ext_form);
+ AXIS2_FREE((*env)->allocator, header_ext_form);
}
}
}
@@ -457,6 +461,7 @@
AXIS2_HTTP_CHUNKED_STREAM_FREE(chunked_stream, env);
}
AXIS2_FREE((*env)->allocator, response_body);
+ AXIS2_HTTP_RESPONSE_WRITER_FREE(response_writer, env);
return AXIS2_SUCCESS;
}