Use xmlMemSetup() instead of xmlGcMemSetup()

Since we don't have a specialized function for "atomic" allocations,
it's better to just use xmlMemSetup() instead of xmlGcMemSetup()
according to this:

https://mail.gnome.org/archives/xml/2007-August/msg00032.html
This commit is contained in:
Ondřej Surý
2024-04-17 19:58:16 +02:00
parent 950f828cd2
commit 23835c4afe

View File

@@ -53,9 +53,8 @@ isc__xml_initialize(void) {
isc_mem_setname(isc__xml_mctx, "libxml2");
isc_mem_setdestroycheck(isc__xml_mctx, false);
RUNTIME_CHECK(xmlGcMemSetup(isc__xml_free, isc__xml_malloc,
isc__xml_malloc, isc__xml_realloc,
isc__xml_strdup) == 0);
RUNTIME_CHECK(xmlMemSetup(isc__xml_free, isc__xml_malloc,
isc__xml_realloc, isc__xml_strdup) == 0);
xmlInitParser();
#endif /* HAVE_LIBXML2 */