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/20 05:40:17 UTC

svn commit: r387137 - in /webservices/axis2/trunk/c/modules/core: engine/req_uri_disp.c receivers/msg_recv.c

Author: sahan
Date: Sun Mar 19 20:40:16 2006
New Revision: 387137

URL: http://svn.apache.org/viewcvs?rev=387137&view=rev
Log:
Fixing memory leaks

Modified:
    webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
    webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c

Modified: webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c?rev=387137&r1=387136&r2=387137&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c (original)
+++ webservices/axis2/trunk/c/modules/core/engine/req_uri_disp.c Sun Mar 19 20:40:16 2006
@@ -173,9 +173,15 @@
                     if (op)
                         AXIS2_LOG_DEBUG((*env)->log, AXIS2_LOG_SI, "Operation found using target endpoint uri fragment");
                 }
+                if(NULL !=  url_tokens[0])
+                    AXIS2_FREE((*env)->allocator, url_tokens[0]);
+                if(NULL !=  url_tokens[1])
+                    AXIS2_FREE((*env)->allocator, url_tokens[1]);
+                AXIS2_FREE((*env)->allocator, url_tokens);
             }
         }
     }
+
     return op;
 }
             

Modified: webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c?rev=387137&r1=387136&r2=387137&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c (original)
+++ webservices/axis2/trunk/c/modules/core/receivers/msg_recv.c Sun Mar 19 20:40:16 2006
@@ -415,8 +415,9 @@
         AXIS2_MSG_CTX_FREE(out_msg_ctx, env);
         return AXIS2_FAILURE;
     }        
-    return AXIS2_ENGINE_SEND(engine, env, out_msg_ctx);
-    
+    status = AXIS2_ENGINE_SEND(engine, env, out_msg_ctx);
+    AXIS2_ENGINE_FREE(engine, env);
+    return status;
 }
 
 axis2_status_t AXIS2_CALL