axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kausha...@apache.org
Subject svn commit: r509125 - /webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c
Date Mon, 19 Feb 2007 08:24:40 GMT
Author: kaushalye
Date: Mon Feb 19 00:24:39 2007
New Revision: 509125

URL: http://svn.apache.org/viewvc?view=rev&rev=509125
Log:
Adidng create and free methods for oxs_transforms.

Modified:
    webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c

Modified: webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c?view=diff&rev=509125&r1=509124&r2=509125
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c (original)
+++ webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c Mon Feb 19 00:24:39 2007
@@ -112,9 +112,7 @@
 oxs_transform_create(const axis2_env_t *env)
 {
     oxs_transform_t *transform = NULL;
-
     AXIS2_ENV_CHECK(env, NULL);
-
     transform = AXIS2_MALLOC(env->allocator, sizeof(oxs_transform_t));
     if (!transform)
     {
@@ -123,16 +121,28 @@
     }
 
     /*TODO Set defaults*/
+    transform->id = NULL;
 
     return transform;
 }
 
     /*Free*/
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
-oxs_transform_free(oxs_transform_t *ctx,
+oxs_transform_free(oxs_transform_t *transform,
         const axis2_env_t *env)
 {
     /*TODO free*/
+    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
+
+    if (transform->id)
+    {
+        AXIS2_FREE(env->allocator, transform->id);
+        transform->id = NULL;
+    }
+
+    AXIS2_FREE(env->allocator,  transform);
+    transform = NULL;
+
     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