!20 backport upstream patches
From: @euleroswander Reviewed-by: @SuperSix173 Signed-off-by:
This commit is contained in:
commit
1c581a3e12
34
backport-0011-pgrep-Remove-memory-leak.patch
Normal file
34
backport-0011-pgrep-Remove-memory-leak.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 5f859b30d34c3e1ec3fca48d55248b502669fcc5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Craig Small <csmall@dropbear.xyz>
|
||||||
|
Date: Tue, 22 Dec 2020 16:08:49 +1100
|
||||||
|
Subject: [PATCH] pgrep: Remove memory leak
|
||||||
|
|
||||||
|
This is part of !118 where @tt.rantala found a memory leak.
|
||||||
|
The other part of !118 may come later if the performance change
|
||||||
|
is significant.
|
||||||
|
|
||||||
|
References:
|
||||||
|
procps-ng/procps!118
|
||||||
|
---
|
||||||
|
pgrep.c | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/pgrep.c b/pgrep.c
|
||||||
|
index 205a1db..4fe5e8a 100644
|
||||||
|
--- a/pgrep.c
|
||||||
|
+++ b/pgrep.c
|
||||||
|
@@ -716,6 +716,11 @@ static struct el * select_procs (int *num)
|
||||||
|
free(cmdsearch);
|
||||||
|
free(cmdoutput);
|
||||||
|
|
||||||
|
+ if (preg) {
|
||||||
|
+ regfree(preg);
|
||||||
|
+ free(preg);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: procps-ng
|
Name: procps-ng
|
||||||
Version: 3.3.16
|
Version: 3.3.16
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: Utilities that provide system information.
|
Summary: Utilities that provide system information.
|
||||||
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
|
License: GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
|
||||||
URL: https://sourceforge.net/projects/procps-ng/
|
URL: https://sourceforge.net/projects/procps-ng/
|
||||||
@ -19,6 +19,7 @@ Patch0006: backport-0007-Fixes-small-bug-in-struct-proc_t-documentation.patch
|
|||||||
Patch0007: backport-0008-misc-eliminate-a-couple-of-miscellaneous-gcc-warning.patch
|
Patch0007: backport-0008-misc-eliminate-a-couple-of-miscellaneous-gcc-warning.patch
|
||||||
Patch0008: backport-0009-top-fix-potential-SEGV-when-no-tasks-were-displayabl.patch
|
Patch0008: backport-0009-top-fix-potential-SEGV-when-no-tasks-were-displayabl.patch
|
||||||
Patch0009: backport-0010-top-fix-additional-SEGVs-if-no-tasks-were-displayabl.patch
|
Patch0009: backport-0010-top-fix-additional-SEGVs-if-no-tasks-were-displayabl.patch
|
||||||
|
Patch0010: backport-0011-pgrep-Remove-memory-leak.patch
|
||||||
|
|
||||||
Patch9000: feature-add-options-M-and-N-for-top.patch
|
Patch9000: feature-add-options-M-and-N-for-top.patch
|
||||||
Patch9001: bugfix-top-exit-with-error-when-pid-overflow.patch
|
Patch9001: bugfix-top-exit-with-error-when-pid-overflow.patch
|
||||||
@ -104,6 +105,9 @@ ln -s %{_bindir}/pidof %{buildroot}%{_sbindir}/pidof
|
|||||||
%{_mandir}/translated
|
%{_mandir}/translated
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 27 2021 hewenliang <hewenliang4@huawei.com> - 3.3.16-14
|
||||||
|
- sync patches
|
||||||
|
|
||||||
* Thu Nov 03 2020 xinghe <xinghe1@huawei.com> - 3.3.16-13
|
* Thu Nov 03 2020 xinghe <xinghe1@huawei.com> - 3.3.16-13
|
||||||
- sync patchs
|
- sync patchs
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user