fix memory leak (#RHEL-44664)
Resolves: #RHEL-44664
This commit is contained in:
parent
04036e29e8
commit
1c997a3d0d
21
pciutils-3.13.0-fixleak.patch
Normal file
21
pciutils-3.13.0-fixleak.patch
Normal file
@ -0,0 +1,21 @@
|
||||
From 41e0a7174c09666cf9d3c52c25caa4bb6feaaa75 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Mares <mj@ucw.cz>
|
||||
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);
|
||||
}
|
@ -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 <mhlavink@redhat.com> - 3.13.0-4
|
||||
- fix memory leak (#RHEL-44664)
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.13.0-3
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user