1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-10-24 01:09:01 +03:00

catalog: Free xmlCatalogResolveCache on cleanup

Otherwise the `tstLastError.py` test will complain about a memory leak.

Fixes: b706c5c5b7 (Add xmlCatalogResolveCache)
Fixes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/1069
This commit is contained in:
Jan Alexander Steffens (heftig)
2026-03-04 19:08:16 +01:00
committed by Daniel Garcia Moreno
parent 9036f16395
commit fac4411aa6

View File

@@ -3338,6 +3338,7 @@ xmlCatalogCleanup(void) {
if (xmlDebugCatalogs)
xmlCatalogPrintDebug(
"Catalogs cleanup\n");
xmlResetCatalogResolveCache();
if (xmlCatalogXMLFiles != NULL)
xmlHashFree(xmlCatalogXMLFiles, xmlFreeCatalogHashEntryList);
xmlCatalogXMLFiles = NULL;