ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r382733 - in /webservices/axis2/trunk/c/modules/core/transport/http: http_transport_utils.c receiver/http_svr_thread.c receiver/simple_http_svr_conn.c
Date Fri, 03 Mar 2006 09:21:35 GMT
Author: sahan
Date: Fri Mar  3 01:21:32 2006
New Revision: 382733

URL: http://svn.apache.org/viewcvs?rev=382733&view=rev
Log:
Fixed some memory leaks

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
    webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c
    webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.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=382733&r1=382732&r2=382733&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 Fri Mar 
3 01:21:32 2006
@@ -311,6 +311,10 @@
 						(env);
 		AXIS2_MSG_CTX_SET_SOAP_ENVELOPE(msg_ctx, env, def_envelope);
 	}
+    if(NULL == engine)
+    {
+        AXIS2_ENGINE_FREE(engine, env);
+    }
 	return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c?rev=382733&r1=382732&r2=382733&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_svr_thread.c Fri Mar
 3 01:21:32 2006
@@ -316,6 +316,7 @@
 	status = AXIS2_HTTP_WORKER_PROCESS_REQUEST(tmp, &thread_env, svr_conn, 
 						request);
 	AXIS2_SIMPLE_HTTP_SVR_CONN_FREE(svr_conn, &thread_env);
+    AXIS2_HTTP_SIMPLE_REQUEST_FREE(request, &thread_env);
 	AXIS2_FREE(thread_env->allocator, arg_list);
 	AXIS2_PLATFORM_GET_TIME_IN_MILLIS(&t2);
 	millisecs = t2.millitm - t1.millitm;

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=382733&r1=382732&r2=382733&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 01:21:32 2006
@@ -456,6 +456,7 @@
 		AXIS2_HTTP_CHUNKED_STREAM_WRITE_LAST_CHUNK(chunked_stream, env);
 		AXIS2_HTTP_CHUNKED_STREAM_FREE(chunked_stream, env);
 	}
+    AXIS2_FREE((*env)->allocator, response_body);
     return AXIS2_SUCCESS;
 }
 



Mime
View raw message