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 sa...@apache.org on 2006/03/21 07:41:21 UTC

svn commit: r387440 - /webservices/axis2/trunk/c/modules/xml/om/om_element.c

Author: samisa
Date: Mon Mar 20 22:41:18 2006
New Revision: 387440

URL: http://svn.apache.org/viewcvs?rev=387440&view=rev
Log:
Fixed memory leak

Modified:
    webservices/axis2/trunk/c/modules/xml/om/om_element.c

Modified: webservices/axis2/trunk/c/modules/xml/om/om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_element.c?rev=387440&r1=387439&r2=387440&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_element.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_element.c Mon Mar 20 22:41:18 2006
@@ -1210,7 +1210,9 @@
                 }
                 else if(!dest && temp_text && AXIS2_STRCMP(temp_text, "") != 0)
                 {
-                    dest = AXIS2_STRDUP(temp_text, env);
+                    /* We do not need to dup this here - Samisa
+                    dest = AXIS2_STRDUP(temp_text, env); */
+                    dest = temp_text;
                 }
             }
         }