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] 11/17: Fixed the segfault with dual clients
Date Sat, 04 Apr 2020 15:06:29 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 26979fbb769f2d9ea63a7e77b4a468f3a85b2657
Author: Don Samisa Abeysinghe <samisa@apache.org>
AuthorDate: Wed May 2 03:10:20 2007 +0000

    Fixed the segfault with dual clients
---
 src/core/transport/http/common/http_worker.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/transport/http/common/http_worker.c b/src/core/transport/http/common/http_worker.c
index d83680a..9d87d56 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;
-        axis2_char_t *msg_id = NULL;
+        const 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);
 
@@ -423,8 +423,8 @@ 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_op_ctx_free(op_ctx, env);
         }
         
     } /* Done freeing message contexts */


Mime
View raw message