axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r388032 - in /webservices/axis2/trunk/c/modules/core/description: op.c svc.c
Date Thu, 23 Mar 2006 04:39:00 GMT
Author: sahan
Date: Wed Mar 22 20:38:58 2006
New Revision: 388032

URL: http://svn.apache.org/viewcvs?rev=388032&view=rev
Log:
Memory leak fixes again

Modified:
    webservices/axis2/trunk/c/modules/core/description/op.c
    webservices/axis2/trunk/c/modules/core/description/svc.c

Modified: webservices/axis2/trunk/c/modules/core/description/op.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/op.c?rev=388032&r1=388031&r2=388032&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/op.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/op.c Wed Mar 22 20:38:58 2006
@@ -760,6 +760,12 @@
         op_impl->op.base.ops = NULL;
     }
     
+    if (op_impl->op.ops)
+    {
+        AXIS2_FREE((*env)->allocator, op_impl->op.ops);
+        op_impl->op.ops = NULL;
+    }
+
     if(op_impl)    
     {
         AXIS2_FREE((*env)->allocator, op_impl);

Modified: webservices/axis2/trunk/c/modules/core/description/svc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/svc.c?rev=388032&r1=388031&r2=388032&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/svc.c Wed Mar 22 20:38:58 2006
@@ -567,10 +567,10 @@
         svc_impl->axis_svc_name = NULL;        
     }        
     
-	if(NULL != svc->ops)
+    if(NULL != svc_impl->svc.ops)
     {
-		AXIS2_FREE((*env)->allocator, svc->ops);
-        svc->ops = NULL;
+	    AXIS2_FREE((*env)->allocator, svc_impl->svc.ops);
+        svc_impl->svc.ops = NULL;
     }
 
     if(svc_impl)



Mime
View raw message