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/27 04:03:19 UTC

svn commit: r389004 - /webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c

Author: samisa
Date: Sun Mar 26 18:03:17 2006
New Revision: 389004

URL: http://svn.apache.org/viewcvs?rev=389004&view=rev
Log:
Fixed a leak for failure case

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=389004&r1=389003&r2=389004&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 Sun Mar 26 18:03:17 2006
@@ -432,6 +432,7 @@
 						&response_body);
 	if(body_size <= 0)
 	{
+        AXIS2_HTTP_RESPONSE_WRITER_FREE(response_writer, env);
 		return AXIS2_SUCCESS;
 	}
 	if(AXIS2_FALSE == chuked_encoding)
@@ -443,6 +444,7 @@
 		{
 			AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_WRITING_RESPONSE, 
 						AXIS2_FAILURE);
+            AXIS2_HTTP_RESPONSE_WRITER_FREE(response_writer, env);
 			return AXIS2_FAILURE;
 		}
 	}