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/21 12:31:26 UTC

svn commit: r387500 - /webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c

Author: samisa
Date: Tue Mar 21 03:31:24 2006
New Revision: 387500

URL: http://svn.apache.org/viewcvs?rev=387500&view=rev
Log:
Fixed the erroneous freeing of content-type

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=387500&r1=387499&r2=387500&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 Tue Mar 21 03:31:24 2006
@@ -196,10 +196,11 @@
 	AXIS2_MSG_CTX_SET_SERVER_SIDE(msg_ctx, env, AXIS2_TRUE);
 	
 	char_set = axis2_http_transport_utils_get_charset_enc(env,content_type);
-    AXIS2_FREE((*env)->allocator, content_type); 
 	xml_reader = axis2_xml_reader_create_for_memory(env, 
 						axis2_http_transport_utils_on_data_request,NULL, 
 						(void *)&callback_ctx, char_set);
+
+    AXIS2_FREE((*env)->allocator, char_set); 
 	if(NULL == xml_reader)
 	{
 		return AXIS2_FAILURE;