From 23835c4afe3d1cd2704a6f68832a70ac128f6880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Wed, 17 Apr 2024 19:58:16 +0200 Subject: [PATCH] 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 --- lib/isc/xml.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/isc/xml.c b/lib/isc/xml.c index 9b5e52c818..bfea645ea5 100644 --- a/lib/isc/xml.c +++ b/lib/isc/xml.c @@ -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 */