ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sen...@apache.org
Subject svn commit: r633094 - /webservices/axis2/trunk/c/util/src/properties.c
Date Mon, 03 Mar 2008 14:28:48 GMT
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


Mime
View raw message