summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/xml.hpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-02-27 03:26:59 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2012-02-27 03:26:59 +0000
commit6f1d9dd9f40b000f03c209207e98d8a4469594bb (patch)
tree7f822db4fc92fa66f9ea97a862242b8124f9965b /sca-cpp/trunk/kernel/xml.hpp
parent352462dacc05290102a18fa77964998d68e6380d (diff)
Add options to use mmap or electric fence to check memory accesses, and fix a few memory access violations.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1294008 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/kernel/xml.hpp')
-rw-r--r--sca-cpp/trunk/kernel/xml.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/sca-cpp/trunk/kernel/xml.hpp b/sca-cpp/trunk/kernel/xml.hpp
index 1f1c664c2d..b53093201d 100644
--- a/sca-cpp/trunk/kernel/xml.hpp
+++ b/sca-cpp/trunk/kernel/xml.hpp
@@ -51,12 +51,11 @@ class XMLParser {
public:
XMLParser() {
debug("xml::XMLParser");
- xmlMemSetup(gc_free, gc_malloc, gc_realloc, gc_strdup);
+ xmlMemSetup(gc_pool_free, gc_pool_malloc, gc_pool_realloc, gc_pool_strdup);
xmlInitParser();
}
~XMLParser() {
- debug("xml::~XMLParser");
}
} xmlParser;
@@ -80,7 +79,6 @@ public:
}
~XMLReader() {
- debug("xml::~XMLReader");
if (!owner)
return;
xmlTextReaderClose(xml);