You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by se...@apache.org on 2008/03/03 15:28:48 UTC
svn commit: r633094 - /webservices/axis2/trunk/c/util/src/properties.c
Author: senaka
Date: Mon Mar 3 06:28:48 2008
New Revision: 633094
URL: http://svn.apache.org/viewvc?rev=633094&view=rev
Log:
Fixing JIRA Issue AXIS2C-1038
Modified:
webservices/axis2/trunk/c/util/src/properties.c
Modified: webservices/axis2/trunk/c/util/src/properties.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/properties.c?rev=633094&r1=633093&r2=633094&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/properties.c (original)
+++ webservices/axis2/trunk/c/util/src/properties.c Mon Mar 3 06:28:48 2008
@@ -350,10 +350,18 @@
sizeof(axis2_char_t) * total_alloc);
if (!new_stream)
{
+ if (out_stream)
+ {
+ AXIS2_FREE(env->allocator, out_stream);
+ }
return NULL;
}
memcpy(new_stream, out_stream, sizeof(axis2_char_t) * ncount);
+ if (out_stream)
+ {
+ AXIS2_FREE(env->allocator, out_stream);
+ }
out_stream = new_stream;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org