From 1c90aa45f7cdbfa4bbbb2665bdeb209cb28dfaca Mon Sep 17 00:00:00 2001 From: shankar Date: Mon, 5 Apr 2010 11:15:30 +0000 Subject: Fixing memory leaks git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930840 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/http/util/http_transport_utils.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core/transport/http') diff --git a/src/core/transport/http/util/http_transport_utils.c b/src/core/transport/http/util/http_transport_utils.c index 0da11ac..89a6962 100644 --- a/src/core/transport/http/util/http_transport_utils.c +++ b/src/core/transport/http/util/http_transport_utils.c @@ -2458,9 +2458,17 @@ axis2_http_transport_utils_dispatch_and_verify( if(axis2_msg_ctx_get_doing_rest(msg_ctx, env)) { + axis2_handler_desc_t *desc; rest_disp = axis2_rest_disp_create(env); handler = axis2_disp_get_base(rest_disp, env); axis2_handler_invoke(handler, env, msg_ctx); + axis2_disp_free(rest_disp, env); + desc = axis2_handler_get_handler_desc(handler, env); + axis2_handler_free(handler, env); + if(desc) + { + axis2_handler_desc_free(desc, env); + } if(!axis2_msg_ctx_get_svc(msg_ctx, env) || !axis2_msg_ctx_get_op(msg_ctx, env)) { -- cgit v1.1-32-gdbae