axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r558919 - in /webservices/axis2/trunk/c/util: include/axutil_param.h src/param.c
Date Tue, 24 Jul 2007 03:21:27 GMT
Author: sahan
Date: Mon Jul 23 20:21:26 2007
New Revision: 558919

URL: http://svn.apache.org/viewvc?view=rev&rev=558919
Log:
Fixing a double free by adding a dummy free function to param

Modified:
    webservices/axis2/trunk/c/util/include/axutil_param.h
    webservices/axis2/trunk/c/util/src/param.c

Modified: webservices/axis2/trunk/c/util/include/axutil_param.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_param.h?view=diff&rev=558919&r1=558918&r2=558919
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_param.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_param.h Mon Jul 23 20:21:26 2007
@@ -159,6 +159,10 @@
         const axutil_env_t *env,
         void *free_fn);
 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axutil_param_dummy_free_fn(void *param,
+        const axutil_env_t *env);
+
     /** @} */
 
 #ifdef __cplusplus

Modified: webservices/axis2/trunk/c/util/src/param.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/param.c?view=diff&rev=558919&r1=558918&r2=558919
==============================================================================
--- webservices/axis2/trunk/c/util/src/param.c (original)
+++ webservices/axis2/trunk/c/util/src/param.c Mon Jul 23 20:21:26 2007
@@ -291,3 +291,12 @@
     return AXIS2_SUCCESS;
 }
 
+/* Use this function for the copied parameters
+ * to avoid double free
+ */
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axutil_param_dummy_free_fn(void *param,
+    const axutil_env_t *env)
+{
+    return AXIS2_SUCCESS;
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message