From 6a4307a3703b0a19abe728266deea5381145dadb Mon Sep 17 00:00:00 2001 From: shankar Date: Mon, 5 Apr 2010 05:59:47 +0000 Subject: Fixing memory leaks git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68 --- samples/server/mtom/mtom.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'samples/server/mtom') diff --git a/samples/server/mtom/mtom.c b/samples/server/mtom/mtom.c index f00b68b..3f10d70 100644 --- a/samples/server/mtom/mtom.c +++ b/samples/server/mtom/mtom.c @@ -245,14 +245,10 @@ axiom_node_t *build_response2( axiom_node_t *text_node = NULL; axiom_namespace_t *ns1 = NULL; - ns1 = - axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", - "ns1"); - mtom_om_ele = - axiom_element_create(env, NULL, "response", ns1, &mtom_om_node); - - axiom_text_create_with_data_handler(env, mtom_om_node, data_handler, - &text_node); + ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples","ns1"); + mtom_om_ele = axiom_element_create(env, NULL, "response", ns1, &mtom_om_node); + axiom_text_create_with_data_handler(env, mtom_om_node, data_handler, &text_node); + axiom_namespace_free(ns1, env); return mtom_om_node; } -- cgit v1.1-32-gdbae