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 sh...@apache.org on 2009/04/08 06:10:40 UTC
svn commit: r762752 - /webservices/axis2/trunk/c/util/src/hash.c
Author: shankar
Date: Tue Apr 7 12:52:00 2009
New Revision: 762752
URL: http://svn.apache.org/viewvc?rev=762752&view=rev
Log:
Incrementing env counter when env is copied.
Modified:
webservices/axis2/trunk/c/util/src/hash.c
Modified: webservices/axis2/trunk/c/util/src/hash.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/hash.c?rev=762752&r1=762751&r2=762752&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/hash.c (original)
+++ webservices/axis2/trunk/c/util/src/hash.c Tue Apr 7 12:52:00 2009
@@ -342,6 +342,7 @@
sizeof(axutil_hash_t) + sizeof(*ht->array) * (orig->max + 1) +
sizeof(axutil_hash_entry_t) * orig->count);
ht->env = env;
+ axutil_env_increment_ref((axutil_env_t*)env);
ht->free = NULL;
ht->count = orig->count;
ht->max = orig->max;
@@ -474,6 +475,7 @@
res = AXIS2_MALLOC(env->allocator, sizeof(axutil_hash_t));
res->env = env;
+ axutil_env_increment_ref((axutil_env_t*)env);
res->free = NULL;
res->hash_func = base->hash_func;
res->count = base->count;