diff --git a/pciutils-3.13.0-fixleak.patch b/pciutils-3.13.0-fixleak.patch new file mode 100644 index 0000000..4bc8bec --- /dev/null +++ b/pciutils-3.13.0-fixleak.patch @@ -0,0 +1,21 @@ +From 41e0a7174c09666cf9d3c52c25caa4bb6feaaa75 Mon Sep 17 00:00:00 2001 +From: Martin Mares +Date: Fri, 5 Jul 2024 20:06:25 +0200 +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 b9f8cb6..edb2494 100644 +--- a/lib/ecam.c ++++ b/lib/ecam.c +@@ -504,6 +504,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); + } diff --git a/pciutils.spec b/pciutils.spec index 2b5a45a..e3aeca1 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,6 +1,6 @@ Name: pciutils Version: 3.13.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: PCI bus related utilities License: GPL-2.0-or-later URL: https://mj.ucw.cz/sw/pciutils/ @@ -14,6 +14,7 @@ Patch1: pciutils-2.2.1-idpath.patch #add support for directory with another pci.ids, rejected by upstream, rhbz#195327 Patch2: pciutils-dir-d.patch +Patch3: pciutils-3.13.0-fixleak.patch Requires: hwdata Requires: %{name}-libs = %{version}-%{release} @@ -106,6 +107,9 @@ diff -u %{SOURCE2} libpci_symbols_new.lst %{_mandir}/man7/* %changelog +* Tue Jul 16 2024 Michal Hlavinka - 3.13.0-4 +- fix memory leak (#RHEL-44664) + * Mon Jun 24 2024 Troy Dawson - 3.13.0-3 - Bump release for June 2024 mass rebuild