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 na...@apache.org on 2007/09/07 06:56:02 UTC
svn commit: r573457 -
/webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c
Author: nandika
Date: Thu Sep 6 21:56:01 2007
New Revision: 573457
URL: http://svn.apache.org/viewvc?rev=573457&view=rev
Log:
freeing the buffer passed to the xml_reader removed
Modified:
webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c
Modified: webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c?rev=573457&r1=573456&r2=573457&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c (original)
+++ webservices/axis2/trunk/c/axiom/src/parser/libxml2/libxml2_reader_wrapper.c Thu Sep 6 21:56:01 2007
@@ -152,7 +152,7 @@
AXIS2_CLOSE_INPUT_CALLBACK close_input_callback;
- axis2_char_t *container;
+ void *container;
}
axis2_libxml2_reader_wrapper_impl_t;
@@ -402,7 +402,8 @@
}
wrapper_impl->current_event = -1;
- wrapper_impl->container = (axis2_char_t *)container;
+ wrapper_impl->container = NULL;
+ wrapper_impl->container = container;
axis2_libxml2_reader_wrapper_init_map(wrapper_impl);
@@ -475,10 +476,6 @@
xmlFreeTextReader(AXIS2_INTF_TO_IMPL(parser)->reader);
}
- if (AXIS2_INTF_TO_IMPL(parser)->container)
- {
- AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(parser)->container);
- }
AXIS2_FREE(env->allocator, AXIS2_INTF_TO_IMPL(parser));
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org