axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kausha...@apache.org
Subject svn commit: r479555 - /webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c
Date Mon, 27 Nov 2006 09:13:47 GMT
Author: kaushalye
Date: Mon Nov 27 01:13:46 2006
New Revision: 479555

URL: http://svn.apache.org/viewvc?view=rev&rev=479555
Log:
fixed a memory leak


Modified:
    webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c?view=diff&rev=479555&r1=479554&r2=479555
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/buffer.c Mon Nov 27 01:13:46 2006
@@ -210,6 +210,12 @@
         buffer_impl->data = NULL;
     }
 
+    if (buffer_impl->buffer.ops)
+    {
+        AXIS2_FREE(env->allocator, buffer_impl->buffer.ops);
+        buffer_impl->buffer.ops = NULL;
+    }
+
     AXIS2_FREE(env->allocator,  buffer_impl);
     buffer_impl = NULL;
 



---------------------------------------------------------------------
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