Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Apr 2026 08:22:40 +0000
Message-ID:  <69d61050.3f89e.e8db585@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bef6f87fa11d50c200bd4768e0267648fd3660fb

commit bef6f87fa11d50c200bd4768e0267648fd3660fb
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-04-08 08:21:38 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-04-08 08:22:34 +0000

    textproc/libxml2: Plug a memory leak with a patch from upstream
    
    PR:             294260
    Reported by:    diizzy
---
 textproc/libxml2/Makefile                    |  1 +
 textproc/libxml2/files/patch-catalog-memleak | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile
index b1be06d89e24..66f1b6b629af 100644
--- a/textproc/libxml2/Makefile
+++ b/textproc/libxml2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME?=	libxml2
 DISTVERSION=	2.15.2
+PORTREVISION=	1
 CATEGORIES?=	textproc gnome
 MASTER_SITES=	GNOME
 DISTNAME=	libxml2-${DISTVERSION}
diff --git a/textproc/libxml2/files/patch-catalog-memleak b/textproc/libxml2/files/patch-catalog-memleak
new file mode 100644
index 000000000000..3f45fcc0e3c6
--- /dev/null
+++ b/textproc/libxml2/files/patch-catalog-memleak
@@ -0,0 +1,28 @@
+From fac4411aa65a2ebf936be50856ab14c148966e9d Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
+Date: Wed, 4 Mar 2026 19:08:16 +0100
+Subject: [PATCH] catalog: Free xmlCatalogResolveCache on cleanup
+
+Otherwise the `tstLastError.py` test will complain about a memory leak.
+
+Fixes: b706c5c5b7ce11d002a5b77ff938aa3693931c12 (Add xmlCatalogResolveCache)
+Fixes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/1069
+---
+ catalog.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git catalog.c catalog.c
+index 263268c08..ff97adedf 100644
+--- catalog.c
++++ catalog.c
+@@ -3338,6 +3338,7 @@ xmlCatalogCleanup(void) {
+     if (xmlDebugCatalogs)
+ 	xmlCatalogPrintDebug(
+ 		"Catalogs cleanup\n");
++    xmlResetCatalogResolveCache();
+     if (xmlCatalogXMLFiles != NULL)
+ 	xmlHashFree(xmlCatalogXMLFiles, xmlFreeCatalogHashEntryList);
+     xmlCatalogXMLFiles = NULL;
+-- 
+GitLab
+


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d61050.3f89e.e8db585>