Author: sahan
Date: Mon Jul 23 21:02:18 2007
New Revision: 558922

URL: http://svn.apache.org/viewvc?view=rev&rev=558922
Log:
Fixing a double free

Modified:
    webservices/sandesha/trunk/c/include/sandesha2_property_bean.h
    webservices/sandesha/trunk/c/src/core/mod_sandesha2.c
    webservices/sandesha/trunk/c/src/util/msg_creator.c
    webservices/sandesha/trunk/c/src/util/property_bean.c

Modified: webservices/sandesha/trunk/c/include/sandesha2_property_bean.h
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/include/sandesha2_property_bean.h?view=diff&rev=558922&r1=558921&r2=558922
==============================================================================
--- webservices/sandesha/trunk/c/include/sandesha2_property_bean.h (original)
+++ webservices/sandesha/trunk/c/include/sandesha2_property_bean.h Mon Jul 23 
21:02:18 2007
@@ -188,6 +188,11 @@
     sandesha2_property_bean_t *bean, 
     const axutil_env_t *env);                                                  
        
 
+axis2_status_t AXIS2_CALL
+sandesha2_property_bean_free_void_arg(
+    void *arg,
+    const axutil_env_t *env);
+
                        
 /** @} */
 #ifdef __cplusplus

Modified: webservices/sandesha/trunk/c/src/core/mod_sandesha2.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/core/mod_sandesha2.c?view=diff&rev=558922&r1=558921&r2=558922
==============================================================================
--- webservices/sandesha/trunk/c/src/core/mod_sandesha2.c (original)
+++ webservices/sandesha/trunk/c/src/core/mod_sandesha2.c Mon Jul 23 21:02:18 
2007
@@ -89,7 +89,9 @@
         
     param = axutil_param_create(env, SANDESHA2_SANDESHA_PROPERTY_BEAN, 
         property_bean);
-    
+    axutil_param_set_value_free(param, env, 
+        sandesha2_property_bean_free_void_arg); 
+
     conf = axis2_conf_ctx_get_conf(conf_ctx, env);
     axis2_conf_add_param(conf, env, param);
 

Modified: webservices/sandesha/trunk/c/src/util/msg_creator.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/msg_creator.c?view=diff&rev=558922&r1=558921&r2=558922
==============================================================================
--- webservices/sandesha/trunk/c/src/util/msg_creator.c (original)
+++ webservices/sandesha/trunk/c/src/util/msg_creator.c Mon Jul 23 21:02:18 2007
@@ -724,6 +724,8 @@
                 temp_name = axutil_param_get_name(next_param, env);
                 temp_value = axutil_param_get_value(next_param, env);
                 new_param = axutil_param_create(env, temp_name, temp_value);
+                axutil_param_set_value_free(new_param, env, 
+                    axutil_param_dummy_free_fn);
                 axis2_op_add_param(new_op, env, new_param); 
             }
         }

Modified: webservices/sandesha/trunk/c/src/util/property_bean.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/property_bean.c?view=diff&rev=558922&r1=558921&r2=558922
==============================================================================
--- webservices/sandesha/trunk/c/src/util/property_bean.c (original)
+++ webservices/sandesha/trunk/c/src/util/property_bean.c Mon Jul 23 21:02:18 
2007
@@ -106,6 +106,15 @@
        return AXIS2_SUCCESS;
 }
 
+axis2_status_t AXIS2_CALL 
+sandesha2_property_bean_free_void_arg(
+    void *arg, 
+    const axutil_env_t *env)
+{
+    return sandesha2_property_bean_free((sandesha2_property_bean_t*)arg, env);
+}
+
+
 long AXIS2_CALL 
 sandesha2_property_bean_get_inactive_timeout_interval(
     sandesha2_property_bean_t *bean, 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to