aboutsummaryrefslogtreecommitdiffstats
path: root/encoding.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-04-19 00:07:51 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-04-19 00:07:51 +0000
commit3c908dca479ed50dca24b8593bca90e40dbde6b8 (patch)
tree6857a13f7d045a5f0880b97a02484ba4e3c8b7bc /encoding.c
parent8494271318577f3dc3d8a4cce298314f2f330cc5 (diff)
downloadandroid_external_libxml2-3c908dca479ed50dca24b8593bca90e40dbde6b8.tar.gz
android_external_libxml2-3c908dca479ed50dca24b8593bca90e40dbde6b8.tar.bz2
android_external_libxml2-3c908dca479ed50dca24b8593bca90e40dbde6b8.zip
added xmlMallocAtomic() to be used when allocating blocks which do not
* DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
Diffstat (limited to 'encoding.c')
-rw-r--r--encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c
index de55e2e0..de69abfd 100644
--- a/encoding.c
+++ b/encoding.c
@@ -283,7 +283,7 @@ xmlUTF8Strndup(const xmlChar *utf, int len) {
if ((utf == NULL) || (len < 0)) return(NULL);
i = xmlUTF8Strsize(utf, len);
- ret = (xmlChar *) xmlMalloc((i + 1) * sizeof(xmlChar));
+ ret = (xmlChar *) xmlMallocAtomic((i + 1) * sizeof(xmlChar));
if (ret == NULL) {
xmlGenericError(xmlGenericErrorContext,
"malloc of %ld byte failed\n",