Author: damitha
Date: Fri Jan 25 00:07:01 2008
New Revision: 615138
URL: http://svn.apache.org/viewvc?rev=615138&view=rev
Log:
Fixing memory leaks
Modified:
webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
Modified:
webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c?rev=615138&r1=615137&r2=615138&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
(original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c Fri
Jan 25 00:07:01 2008
@@ -341,10 +341,10 @@
axutil_hash_this(i, &k, NULL, &v);
key_l = (axis2_char_t *) k;
- if (0 == axutil_strcmp(key, key_l))
+ if(0 == axutil_strcmp(key, key_l))
{
- msg_ctx = (axis2_msg_ctx_t *) v;
axis2_op_ctx_t *op_ctx = NULL;
+ msg_ctx = (axis2_msg_ctx_t *) v;
op_ctx =
axis2_msg_ctx_get_op_ctx(msg_ctx, env);
axis2_op_ctx_set_in_use(op_ctx, env, AXIS2_FALSE);
@@ -625,6 +625,8 @@
axis2_msg_ctx_set_property(msg_ctx, env, key, property);
}
}
+ if(msg_store_bean)
+ sandesha2_msg_store_bean_free(msg_store_bean, env);
return msg_ctx;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]