summaryrefslogtreecommitdiffstats
path: root/samples/client
diff options
context:
space:
mode:
authorGravatar shankar2010-04-05 05:59:47 +0000
committerGravatar shankar2010-04-05 05:59:47 +0000
commit6a4307a3703b0a19abe728266deea5381145dadb (patch)
tree75b7e9cee6ec090bf111eea892b1cab77d0fa92a /samples/client
parentafe578cd8894b9a6cd6c6b65e552448536f02dce (diff)
downloadaxis2c-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/client')
-rw-r--r--samples/client/echo/echo.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/samples/client/echo/echo.c b/samples/client/echo/echo.c
index 94a0a20..6a06920 100644
--- a/samples/client/echo/echo.c
+++ b/samples/client/echo/echo.c
@@ -176,15 +176,12 @@ build_om_payload_for_echo_svc(
axiom_namespace_t *ns1 = NULL;
axis2_char_t *om_str = NULL;
- ns1 =
- axiom_namespace_create(env, "http://ws.apache.org/axis2/services/echo",
- "ns1");
- echo_om_ele =
- axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
- text_om_ele =
- axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
+ ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/services/echo", "ns1");
+ echo_om_ele = axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node);
+ text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node);
axiom_element_set_text(text_om_ele, env, "Hello World!", text_om_node);
om_str = axiom_node_to_string(echo_om_node, env);
+ axiom_namespace_free(ns1, env);
if (om_str)
{