mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
many further little changes for OOM problems. Now seems to be getting
* SAX2.c, encoding.c, error.c, parser.c, tree.c, uri.c, xmlIO.c, xmlreader.c, include/libxml/tree.h: many further little changes for OOM problems. Now seems to be getting closer to "ok". * testOOM.c: added code to intercept more errors, found more problems with library. Changed method of flagging / counting errors intercepted.
This commit is contained in:
@@ -1263,6 +1263,7 @@ xmlNewCharEncodingHandler(const char *name,
|
||||
handler = (xmlCharEncodingHandlerPtr)
|
||||
xmlMalloc(sizeof(xmlCharEncodingHandler));
|
||||
if (handler == NULL) {
|
||||
xmlFree(up);
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlNewCharEncodingHandler : out of memory !\n");
|
||||
return(NULL);
|
||||
|
Reference in New Issue
Block a user