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 ka...@apache.org on 2006/09/12 13:35:32 UTC

svn commit: r442566 - in /webservices/axis2/trunk/c: axiom/src/attachments/mime_parser.c modules/core/clientapi/callback_recv.c modules/core/description/svc.c

Author: kaushalye
Date: Tue Sep 12 04:35:32 2006
New Revision: 442566

URL: http://svn.apache.org/viewvc?view=rev&rev=442566
Log:
Applying patch for memory leaks fixed - JIRA AXIS2C 253


Modified:
    webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
    webservices/axis2/trunk/c/modules/core/clientapi/callback_recv.c
    webservices/axis2/trunk/c/modules/core/description/svc.c

Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c?view=diff&rev=442566&r1=442565&r2=442566
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_parser.c Tue Sep 12 04:35:32 2006
@@ -450,6 +450,8 @@
         }/*if (mime_parser_impl->mime_parts_map)*/
     }/* end while (!end_of_mime) */
     
+    AXIS2_FREE(env->allocator, buffer);
+
     return mime_parser_impl->mime_parts_map;
 }
 

Modified: webservices/axis2/trunk/c/modules/core/clientapi/callback_recv.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/callback_recv.c?view=diff&rev=442566&r1=442565&r2=442566
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/callback_recv.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/callback_recv.c Tue Sep 12 04:35:32 2006
@@ -156,8 +156,16 @@
         callback_recv_impl->callback_map = NULL;
     }
     
-    AXIS2_FREE(env->allocator, callback_recv_impl);
-    callback_recv_impl = NULL;
+    if (callback_recv_impl->base)
+    {
+        AXIS2_MSG_RECV_FREE(callback_recv_impl->base, env);
+    }
+
+    if (callback_recv_impl)
+    {
+        AXIS2_FREE(env->allocator, callback_recv_impl);
+        callback_recv_impl = NULL;
+    }
     
     return AXIS2_SUCCESS;
 }

Modified: webservices/axis2/trunk/c/modules/core/description/svc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/svc.c?view=diff&rev=442566&r1=442565&r2=442566
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/svc.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/svc.c Tue Sep 12 04:35:32 2006
@@ -917,6 +917,21 @@
 
     if(NULL != svc_impl->op_alias_map)
     {
+        axis2_hash_index_t *hi = NULL;
+        void *val = NULL;
+        
+        for (hi = axis2_hash_first(svc_impl->op_alias_map, env); hi;
+            hi = axis2_hash_next(env, hi))
+        {
+            axis2_hash_this(hi, NULL, NULL, &val);
+
+            if (val)
+            {
+                axis2_op_free(val, env);
+                val = NULL;
+            }
+        }
+
         axis2_hash_free(svc_impl->op_alias_map, env);
         svc_impl->op_alias_map = NULL;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org