summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar shankar2010-04-05 11:15:30 +0000
committerGravatar shankar2010-04-05 11:15:30 +0000
commit1c90aa45f7cdbfa4bbbb2665bdeb209cb28dfaca (patch)
tree6d0c454b90aa53ae0b23d6562b6f79e38e6f0b63 /src
parent6a4307a3703b0a19abe728266deea5381145dadb (diff)
downloadaxis2c-1c90aa45f7cdbfa4bbbb2665bdeb209cb28dfaca.tar.gz
axis2c-1c90aa45f7cdbfa4bbbb2665bdeb209cb28dfaca.tar.bz2
Fixing memory leaks
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/core/transport/http/util/http_transport_utils.c8
1 files changed, 8 insertions, 0 deletions
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))
{