diff options
-rw-r--r-- | neethi/src/assertion.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/neethi/src/assertion.c b/neethi/src/assertion.c index 29c70be..86597dc 100644 --- a/neethi/src/assertion.c +++ b/neethi/src/assertion.c @@ -17,6 +17,7 @@ #include <neethi_assertion.h> #include <axiom_util.h> +#include <axiom_node.h> #include <rp_x509_token.h> #include <rp_property.h> #include <rp_layout.h> @@ -243,6 +244,11 @@ neethi_assertion_free( neethi_assertion->free_func(neethi_assertion->value, env); } } + if(neethi_assertion->node) + { + axiom_node_free_tree(neethi_assertion->node, env); + neethi_assertion->node = NULL; + } AXIS2_FREE(env->allocator, neethi_assertion); neethi_assertion = NULL; } |