You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/03/23 05:39:00 UTC
svn commit: r388032 - in
/webservices/axis2/trunk/c/modules/core/description: op.c svc.c
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)