diff options
author | shankar | 2010-04-05 05:59:47 +0000 |
---|---|---|
committer | shankar | 2010-04-05 05:59:47 +0000 |
commit | 6a4307a3703b0a19abe728266deea5381145dadb (patch) | |
tree | 75b7e9cee6ec090bf111eea892b1cab77d0fa92a /samples/server/mtom | |
parent | afe578cd8894b9a6cd6c6b65e552448536f02dce (diff) | |
download | axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.gz axis2c-6a4307a3703b0a19abe728266deea5381145dadb.tar.bz2 |
Fixing memory leaks
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@930802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'samples/server/mtom')
-rw-r--r-- | samples/server/mtom/mtom.c | 12 |
1 files changed, 4 insertions, 8 deletions
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; } |