axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 12/17: Fixed some leaks in the code and some typos in the docs
Date Sat, 04 Apr 2020 15:06:30 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1.0.x
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit 223b133efae4877b619a13a5c91f2e578ff1ff3e
Author: Don Samisa Abeysinghe <samisa@apache.org>
AuthorDate: Wed May 2 09:26:30 2007 +0000

    Fixed some leaks in the code and some typos in the docs
---
 src/core/description/op.c                          |  4 +-
 src/core/transport/http/common/http_worker.c       |  7 ++--
 src/core/transport/http/receiver/http_svr_thread.c |  4 +-
 xdocs/docs/axis2c_manual.html                      | 44 ++++++++++------------
 4 files changed, 28 insertions(+), 31 deletions(-)

diff --git a/src/core/description/op.c b/src/core/description/op.c
index 240e9d9..5d2a192 100644
--- a/src/core/description/op.c
+++ b/src/core/description/op.c
@@ -980,11 +980,11 @@ axis2_op_register_op_ctx(axis2_op_t *op,
     {
         return AXIS2_FAILURE;
     }
-    status =  axis2_conf_ctx_register_op_ctx(conf_ctx, env, msg_id, op_ctx);
+    /*status =  axis2_conf_ctx_register_op_ctx(conf_ctx, env, msg_id, op_ctx);
     if (AXIS2_FAILURE == status)
     {
         return AXIS2_FAILURE;
-    }
+    }*/
     status =  axis2_msg_ctx_set_op_ctx(msg_ctx, env, op_ctx);
     if (AXIS2_FAILURE == status)
     {
diff --git a/src/core/transport/http/common/http_worker.c b/src/core/transport/http/common/http_worker.c
index 9d87d56..032bf97 100644
--- a/src/core/transport/http/common/http_worker.c
+++ b/src/core/transport/http/common/http_worker.c
@@ -393,7 +393,7 @@ axis2_http_worker_process_request(
     {
         axis2_msg_ctx_t *out_msg_ctx = NULL, *in_msg_ctx = NULL;
         axis2_msg_ctx_t **msg_ctx_map = NULL;
-        const axis2_char_t *msg_id = NULL;
+        axis2_char_t *msg_id = NULL;
         axis2_conf_ctx_t *conf_ctx = NULL;
         msg_ctx_map =  axis2_op_ctx_get_msg_ctx_map(op_ctx, env);
 
@@ -409,7 +409,7 @@ axis2_http_worker_process_request(
 
         if (in_msg_ctx)
         {
-            msg_id = axis2_msg_ctx_get_msg_id(in_msg_ctx, env);
+            msg_id = axutil_strdup(env, axis2_msg_ctx_get_msg_id(in_msg_ctx, env));
             conf_ctx = axis2_msg_ctx_get_conf_ctx(in_msg_ctx, env);
         
             axis2_msg_ctx_free(in_msg_ctx, env);
@@ -423,8 +423,9 @@ axis2_http_worker_process_request(
             if (conf_ctx && msg_id)
             {
                 axis2_conf_ctx_register_op_ctx(conf_ctx, env, msg_id, NULL);
-                axis2_op_ctx_free(op_ctx, env);
+                AXIS2_FREE(env->allocator, msg_id);
             }
+            axis2_op_ctx_free(op_ctx, env);
         }
         
     } /* Done freeing message contexts */
diff --git a/src/core/transport/http/receiver/http_svr_thread.c b/src/core/transport/http/receiver/http_svr_thread.c
index 4ce6e18..261b144 100644
--- a/src/core/transport/http/receiver/http_svr_thread.c
+++ b/src/core/transport/http/receiver/http_svr_thread.c
@@ -292,11 +292,11 @@ axis2_svr_thread_worker_func (
 
     if (thread_env)
     {
-        /*axutil_free_thread_env(thread_env);*/
+        axutil_free_thread_env(thread_env);
         thread_env = NULL;
     }
 #ifdef AXIS2_SVR_MULTI_THREADED
-    /*axutil_thread_pool_exit_thread(env->thread_pool, thd);*/
+    axutil_thread_pool_exit_thread(env->thread_pool, thd);
 #endif
 
     return NULL;
diff --git a/xdocs/docs/axis2c_manual.html b/xdocs/docs/axis2c_manual.html
index 090c40c..cbe38ee 100644
--- a/xdocs/docs/axis2c_manual.html
+++ b/xdocs/docs/axis2c_manual.html
@@ -1174,39 +1174,35 @@ troubleshoot:</p>
 <p>Use the Axis2/C VC project or makefile to buid the
 component.</a></p>
 
-<p><a name="ssl_client">In this document I assume that the mod_axis2_IIS.dll
-is in the directory </a><a name="ssl_client1"
-id="ssl_client1"><code>c:\axis2c\lib\mod_axis2_IIS.dll</code> and axis2c_home
-is <code>c:\axis2c</code></a></p>
+<p>In this document I assume that the mod_axis2_IIS.dll
+is in the directory <code>c:\axis2c\lib\mod_axis2_IIS.dll</code> and axis2c_home
+is <code>c:\axis2c</code></p>
 
-<p><a name="ssl_client2" id="ssl_client2">Add the following key to the
-registery.</a></p>
+<p>Add the following key to the
+registery.</p>
 
-<p><a name="ssl_client">HKEY_LOCAL_MACHINE\SOFTWARE\Apache Axis2c\IIS ISAPI
-Redirector</a></p>
+<p>HKEY_LOCAL_MACHINE\SOFTWARE\Apache Axis2c\IIS ISAPI
+Redirector</p>
 
-<p><a name="ssl_client">Add a string value with the name axis2c_home and a
-value of c:\axis2c</a></p>
+<p>Add a string value with the name axis2c_home and a
+value of c:\axis2c</p>
 
-<p><a name="ssl_client">Add a string value with the name log_file and a value
-of c:\axis2c\logs\axis2.log</a></p>
+<p>Add a string value with the name log_file and a value
+of c:\axis2c\logs\axis2.log</p>
 
-<p><a name="ssl_client">Add a string value with the name log_level. The value
-can be either trace, error, info, critical, debug, or warning.</a></p>
+<p>Add a string value with the name log_level. The value
+can be either trace, error, info, critical, debug, or warning.</p>
 
-<p><a name="ssl_client">Using the IIS management console, add a new virtual
-directory to your IIS/PWS web site. </a><a name="ssl_client3"
-id="ssl_client3">The name of the virtual directory must be axis2. Its
-physical path should be the directory </a><a name="ssl_client4"
-id="ssl_client4">in which you placed mod_axis2_IIS.dll (in our example it is
-c:\axis2c\lib). When creating this new </a><a name="ssl_client5"
-id="ssl_client5">virtual directory, assign execute access to it.</a></p>
+<p>Using the IIS management console, add a new virtual
+directory to your IIS/PWS web site. The name of the virtual directory must be axis2. Its
+physical path should be the directory in which you placed mod_axis2_IIS.dll (in our example
it is
+c:\axis2c\lib). When creating this new virtual directory, assign execute access to it.</p>
 
-<p><a name="ssl_client">By using the IIS management console, add
+<p>By using the IIS management console, add
 mod_axis2_IIS.dll as a filter in your IIS/PWS web site and restart the IIS
-admin service.</a></p>
+admin service.</p>
 
-<p><a name="ssl_client"></a></p>
+<a name="ssl_client"></a>
 <h1>13. Using SSL Client</h1>
 
 <h2>Building and Configuring the Client</h2>


Mime
View raw message