summaryrefslogtreecommitdiffstats
path: root/samples/server/echo
diff options
context:
space:
mode:
Diffstat (limited to 'samples/server/echo')
-rw-r--r--samples/server/echo/echo.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/samples/server/echo/echo.c b/samples/server/echo/echo.c
index 2ce6a08..bb3ec1d 100644
--- a/samples/server/echo/echo.c
+++ b/samples/server/echo/echo.c
@@ -95,14 +95,11 @@ build_om_programatically(
axiom_element_t *text_om_ele = NULL;
axiom_namespace_t *ns1 = NULL;
- ns1 =
- axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples",
- "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/c/samples", "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, text, text_om_node);
+ axiom_namespace_free(ns1, env);
return echo_om_node;
}