You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2006/09/26 06:37:41 UTC
svn commit: r449900 - in /webservices/axis2/trunk/c:
modules/core/context/msg_ctx.c modules/core/description/op.c
modules/core/transport/http/http_transport_utils.c
modules/core/transport/http/http_worker.c rampart/src/util/username_token.c
Author: kaushalye
Date: Mon Sep 25 21:37:40 2006
New Revision: 449900
URL: http://svn.apache.org/viewvc?view=rev&rev=449900
Log:
Memory leaks fixed
Modified:
webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
webservices/axis2/trunk/c/modules/core/description/op.c
webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
webservices/axis2/trunk/c/rampart/src/util/username_token.c
Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?view=diff&rev=449900&r1=449899&r2=449900
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Mon Sep 25 21:37:40 2006
@@ -960,6 +960,7 @@
}
AXIS2_FREE(env->allocator, msg_ctx_impl);
+ msg_ctx_impl = NULL;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/core/description/op.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/op.c?view=diff&rev=449900&r1=449899&r2=449900
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/op.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/op.c Mon Sep 25 21:37:40 2006
@@ -522,7 +522,7 @@
return NULL;
}
message_out = NULL;
-
+
axis2_op_set_msg_exchange_pattern(&(op_impl->op), env,
(axis2_char_t *) AXIS2_MEP_URI_IN_OUT);
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?view=diff&rev=449900&r1=449899&r2=449900
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Mon Sep 25 21:37:40 2006
@@ -274,6 +274,7 @@
callback_ctx.unread_len = soap_body_len;
}
}
+ AXIS2_FREE(env->allocator, mime_boundary);
}
Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c?view=diff&rev=449900&r1=449899&r2=449900
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_worker.c Mon Sep 25 21:37:40 2006
@@ -419,7 +419,7 @@
status = AXIS2_SIMPLE_HTTP_SVR_CONN_WRITE_RESPONSE(svr_conn, env, response);
AXIS2_FREE(env->allocator, url_external_form);
url_external_form = NULL;
- /*AXIS2_MSG_CTX_FREE(msg_ctx, env);*/
+ AXIS2_MSG_CTX_FREE(msg_ctx, env);
msg_ctx = NULL;
AXIS2_URL_FREE(request_url, env);
request_url = NULL;
Modified: webservices/axis2/trunk/c/rampart/src/util/username_token.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/util/username_token.c?view=diff&rev=449900&r1=449899&r2=449900
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/util/username_token.c (original)
+++ webservices/axis2/trunk/c/rampart/src/util/username_token.c Mon Sep 25 21:37:40 2006
@@ -229,7 +229,6 @@
axiom_node_t *ut_node, *un_node, *pw_node, *nonce_node, *created_node = NULL;
axiom_element_t *ut_ele, *un_ele, *pw_ele, *nonce_ele, *created_ele = NULL;
axis2_char_t *username, *password, *password_type = NULL;
- axis2_char_t *nonce_val, *created_val, *digest_val = NULL;
axiom_namespace_t *wsu_ns_obj = NULL;
axiom_attribute_t *om_attr = NULL;
rampart_username_token_impl_t *username_token_impl = NULL;
@@ -279,6 +278,7 @@
if (0 == AXIS2_STRCMP(password_type, RAMPART_PASSWORD_DIGEST))
{
+ axis2_char_t *nonce_val, *created_val, *digest_val = NULL;
axiom_namespace_t *dec_ns = NULL;
nonce_val = rampart_generate_nonce(env) ;
created_val = rampart_generate_time(env, 0);
@@ -327,7 +327,19 @@
AXIOM_ELEMENT_SET_NAMESPACE(created_ele, env, wsu_ns_obj, created_node);
}
-
+
+ if(nonce_val){
+ AXIS2_FREE(env->allocator, nonce_val);
+ nonce_val = NULL;
+ }
+ if(created_val){
+ AXIS2_FREE(env->allocator, created_val);
+ created_val = NULL;
+ }
+ if(digest_val){
+ AXIS2_FREE(env->allocator, digest_val);
+ digest_val = NULL;
+ }
}
else /*default is passwordText*/
{
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org