axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r367955 - /webservices/axis2/trunk/c/test/core/engine/test_engine.c
Date Wed, 11 Jan 2006 07:02:36 GMT
Author: samisa
Date: Tue Jan 10 23:02:32 2006
New Revision: 367955

URL: http://svn.apache.org/viewcvs?rev=367955&view=rev
Log:
Fixed some memory leaks

Modified:
    webservices/axis2/trunk/c/test/core/engine/test_engine.c

Modified: webservices/axis2/trunk/c/test/core/engine/test_engine.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/engine/test_engine.c?rev=367955&r1=367954&r2=367955&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/engine/test_engine.c (original)
+++ webservices/axis2/trunk/c/test/core/engine/test_engine.c Tue Jan 10 23:02:32 2006
@@ -44,11 +44,21 @@
     status = AXIS2_ENGINE_SEND(engine, &env, msg_ctx);
 	if(status != AXIS2_SUCCESS )
 	{
-	    printf("ERROR %d\n", status);
-	    return -1;
+	    printf("axis2_test_engine_send ERROR %d\n", status);
 	}
     else
-        printf("SUCCESS\n");
+        printf("axis2_test_engine_send SUCCESS\n");
+
+    AXIS2_CONF_CTX_FREE(conf_ctx, &env);
+    AXIS2_CONF_FREE(conf, &env);
+    AXIS2_MSG_CTX_FREE(msg_ctx, &env);
+    AXIS2_QNAME_FREE(qname, &env);
+    AXIS2_SVC_GRP_CTX_FREE(svc_grp_ctx, &env);
+    AXIS2_SVC_CTX_FREE(svc_ctx, &env);
+    AXIS2_SVC_FREE(svc, &env);
+    AXIS2_OP_CTX_FREE(op_ctx, &env);
+    AXIS2_OP_FREE(op, &env);
+    AXIS2_ENGINE_FREE(engine, &env);
     return 0;
 }
 
@@ -71,11 +81,14 @@
     status = AXIS2_ENGINE_RECEIVE(engine, &env, msg_ctx);
 	if(status != AXIS2_SUCCESS )
 	{
-	    printf("ERROR %d\n", status);
-	    return -1;
+	    printf("axis2_test_engine_receive ERROR %d\n", status);
 	}
     else
-        printf("SUCCESS\n");
+        printf("axis2_test_engine_receive SUCCESS\n");
+    AXIS2_CONF_CTX_FREE(conf_ctx, &env);
+    AXIS2_CONF_FREE(conf, &env);
+    AXIS2_MSG_CTX_FREE(msg_ctx, &env);
+    AXIS2_ENGINE_FREE(engine, &env);
     return 0;
 }
 int main()



Mime
View raw message