You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2007/02/19 09:24:40 UTC
svn commit: r509125 -
/webservices/axis2/trunk/c/rampart/src/omxmlsec/transform.c
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