1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

memory: Deprecate xmlGcMemSetup

This commit is contained in:
Nick Wellnhofer
2024-07-16 00:35:53 +02:00
parent ff39f28bd7
commit 5d36664fc9
16 changed files with 47 additions and 41 deletions

6
tree.c
View File

@@ -186,7 +186,7 @@ xmlBuildQName(const xmlChar *ncname, const xmlChar *prefix,
lenp = strlen((char *) prefix);
if ((memory == NULL) || (len < lenn + lenp + 2)) {
ret = (xmlChar *) xmlMallocAtomic(lenn + lenp + 2);
ret = xmlMalloc(lenn + lenp + 2);
if (ret == NULL)
return(NULL);
} else {
@@ -4736,10 +4736,10 @@ xmlGetNodePath(const xmlNode *node)
return (NULL);
buf_len = 500;
buffer = (xmlChar *) xmlMallocAtomic(buf_len);
buffer = xmlMalloc(buf_len);
if (buffer == NULL)
return (NULL);
buf = (xmlChar *) xmlMallocAtomic(buf_len);
buf = xmlMalloc(buf_len);
if (buf == NULL) {
xmlFree(buffer);
return (NULL);