Author: kaushalye
Date: Tue Apr 24 03:51:39 2007
New Revision: 531872

URL: http://svn.apache.org/viewvc?view=rev&rev=531872
Log:
Fixing memory leaks.
Rectified version number in configure.ac
Updating README

Modified:
    webservices/rampart/trunk/c/configure.ac
    webservices/rampart/trunk/c/samples/client/sec_echo/echo.c
    webservices/rampart/trunk/c/samples/configure.ac
    webservices/rampart/trunk/c/samples/secpolicy/README.txt

Modified: webservices/rampart/trunk/c/configure.ac
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/configure.ac?view=diff&rev=531872&r1=531871&r2=531872
==============================================================================
--- webservices/rampart/trunk/c/configure.ac (original)
+++ webservices/rampart/trunk/c/configure.ac Tue Apr 24 03:51:39 2007
@@ -2,7 +2,7 @@
 
 AC_PREREQ(2.59)
 
-AC_INIT(rampartc-src, 0.96)
+AC_INIT(rampartc-src, 0.90)
 AC_CANONICAL_SYSTEM
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE([tar-ustar])

Modified: webservices/rampart/trunk/c/samples/client/sec_echo/echo.c
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/sec_echo/echo.c?view=diff&rev=531872&r1=531871&r2=531872
==============================================================================
--- webservices/rampart/trunk/c/samples/client/sec_echo/echo.c (original)
+++ webservices/rampart/trunk/c/samples/client/sec_echo/echo.c Tue Apr 24 
03:51:39 2007
@@ -141,6 +141,12 @@
             endpoint_ref = NULL;
         }
     */
+    if (env)
+    {
+        axutil_env_free((axutil_env_t *) env);
+        env = NULL;
+    }
+    
     return 0;
 }
 
@@ -163,8 +169,10 @@
     axiom_element_set_text(text_om_ele, env, "echo5\n", text_om_node);
 
     om_str = axiom_node_to_string(echo_om_node, env);
-    if (om_str)
+    if (om_str){
         printf("\nSending OM : %s\n", om_str);
-
+        AXIS2_FREE(env->allocator, om_str);
+        om_str =  NULL;
+    }
     return echo_om_node;
 }

Modified: webservices/rampart/trunk/c/samples/configure.ac
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/configure.ac?view=diff&rev=531872&r1=531871&r2=531872
==============================================================================
--- webservices/rampart/trunk/c/samples/configure.ac (original)
+++ webservices/rampart/trunk/c/samples/configure.ac Tue Apr 24 03:51:39 2007
@@ -2,7 +2,7 @@
 
 AC_PREREQ(2.59)
 
-AC_INIT(rampart-samples-src, 0.96)
+AC_INIT(rampart-samples-src, 0.90)
 AC_CANONICAL_SYSTEM
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE([tar-ustar])

Modified: webservices/rampart/trunk/c/samples/secpolicy/README.txt
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/README.txt?view=diff&rev=531872&r1=531871&r2=531872
==============================================================================
--- webservices/rampart/trunk/c/samples/secpolicy/README.txt (original)
+++ webservices/rampart/trunk/c/samples/secpolicy/README.txt Tue Apr 24 
03:51:39 2007
@@ -25,16 +25,26 @@
 8.          A complete scenario, where both client and server encrypt/sign,
 add Timestamps, Usernametokens.
 
-
-I am in a HURRY and I need to try a scenario
+FAQ:
+---
+* I am in a HURRY and I need to try a scenario
 --------------------------------------------
-If you in a really hurry and need to try a scenario please use the
+If you are in a really hurry and need to try a scenario please use the
 test_scen.sh
 Usage : %sh test_scen.sh scenarioX server-port
 e.g. %s test_scen.sh scenario3 8080
 
-I need to try all the scenarios
+* I need to try all the scenarios
 -------------------------------
 In this case please use the script run_all.sh.
 Usage: %sh run_all.sh server-port
 e.g. %sh run_all.sh 8080
+
+* I need to see the messages exchanged
+--------------------------------------
+For that you may use the TCP Monitor utility.
+http://ws.apache.org/commons/tcpmon/
+Make sure that you give the correct port that you configured in TCPMon
+while running the scripts
+
+


Reply via email to