Projects
openEuler:24.03:SP1:Everything:64G
pciutils
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:pciutils.spec
Changed
@@ -1,6 +1,6 @@ Name: pciutils Version: 3.10.0 -Release: 2 +Release: 3 Summary: PCI bus related utilities License: GPLv2+ URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml @@ -11,6 +11,7 @@ # patch1 is from fedora, rhbz#195327 Patch1: 0001-pciutils-dir-d.patch Patch2: 0002-Support-specify-CC.patch +Patch3: 0003-Fix-memory-leak-when-fill-flags-has-PCI_FILL_PARENT.patch ExclusiveOS: Linux BuildRequires: gcc sed kmod-devel pkgconfig zlib-devel @@ -106,6 +107,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Aug 9 2024 cenhuilin <cenhuilin@kylinos.cn> - 3.10.0-3 +- Fix memory leak when fill flags has PCI_FILL_PARENT + * Thu Mar 21 2024 luofeng <luofeng13@huawei.com> - 3.10.0-2 - Support specify CC
View file
_service:tar_scm:0003-Fix-memory-leak-when-fill-flags-has-PCI_FILL_PARENT.patch
Added
@@ -0,0 +1,35 @@ +From 869a9f66b6aa723d9f90b4b3e27cd96bee5e0180 Mon Sep 17 00:00:00 2001 +From: nsf.cd <zhaolei4@nsfocus.com> +Date: Fri, 9 Aug 2024 14:06:44 +0800 +Subject: PATCH Fix memory leak when fill flags has PCI_FILL_PARENT. + +--- + lib/sysfs.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/lib/sysfs.c b/lib/sysfs.c +index ffa4f9d..135a967 100644 +--- a/lib/sysfs.c ++++ b/lib/sysfs.c +@@ -407,12 +407,18 @@ sysfs_fill_info(struct pci_dev *d, unsigned int flags) + path_canon = realpath(path_rel, NULL); + if (!path_canon || strcmp(path_canon, path_abs) != 0) + parent = NULL; ++ ++ if (path_canon) ++ free(path_canon); + } + + if (parent) + d->parent = parent; + else + clear_fill(d, PCI_FILL_PARENT); ++ ++ if (path_abs) ++ free(path_abs); + } + } + +-- +2.33.0 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/pciutils.git</param> - <param name="revision">openEuler-24.03-LTS-Next</param> + <param name="revision">openEuler-24.03-LTS-SP1</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2