diff --git a/0003-ECAM-Fix-memory-leak.patch b/0003-ECAM-Fix-memory-leak.patch new file mode 100644 index 0000000000000000000000000000000000000000..3aa4a8413afab63e2234851fb096c3b30d31deeb --- /dev/null +++ b/0003-ECAM-Fix-memory-leak.patch @@ -0,0 +1,24 @@ +From 41e0a7174c09666cf9d3c52c25caa4bb6feaaa75 Mon Sep 17 00:00:00 2001 +From: Martin Mares +Date: Wed, 10 Sep 2025 16:08:37 +0800 +Subject: [PATCH] ECAM: Fix memory leak + +--- + lib/ecam.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/ecam.c b/lib/ecam.c +index fdeec07..6d44806 100644 +--- a/lib/ecam.c ++++ b/lib/ecam.c +@@ -422,6 +422,7 @@ find_mcfg(struct pci_access *a, const char *acpimcfg, const char *efisystab, int + fclose(mcfg_file); + return mcfg; + } ++ pci_mfree(mcfg); + } + fclose(mcfg_file); + } +-- +2.43.0 + diff --git a/pciutils.spec b/pciutils.spec index 25d1afe78b2f3e5acbee9ee89aacf88011a80604..7a71accc820426f92d88bc5c3b6ef8145e363a12 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,6 +1,6 @@ Name: pciutils Version: 3.13.0 -Release: 3 +Release: 4 Summary: PCI bus related utilities License: GPLv2+ URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml @@ -9,6 +9,7 @@ Source0: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/%{na # support building with other compilers # rebased against 3.13.0 Patch2: 0002-Support-specify-CC.patch +Patch3: 0003-ECAM-Fix-memory-leak.patch ExclusiveOS: Linux BuildRequires: gcc sed kmod-devel pkgconfig zlib-devel @@ -106,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT/usr/share/hwdata/pci.ids* rm -rf $RPM_BUILD_ROOT %changelog +* Wed Sep 10 2025 cenhuilin - 3.13.0-4 +- ECAM: Fix memory leak + * Tue Jul 01 2025 wangmian - 3.13.0-3 - Fixed bug for macros in Changelog