Apply upstream patch for memory leak
This commit is contained in:
parent
c37c43e39c
commit
e9205c1584
25
less-590-memory-leak.patch
Normal file
25
less-590-memory-leak.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 31a14b8124e551f9028c5a2785fbbcb5839c491d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Nudelman <markn@greenwoodsoftware.com>
|
||||||
|
Date: Fri, 8 Oct 2021 15:25:30 -0700
|
||||||
|
Subject: [PATCH] Remove unnecessary memory allocation.
|
||||||
|
|
||||||
|
---
|
||||||
|
main.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/main.c b/main.c
|
||||||
|
index 190ca6c..5934eb9 100644
|
||||||
|
--- a/main.c
|
||||||
|
+++ b/main.c
|
||||||
|
@@ -140,7 +140,7 @@ main(argc, argv)
|
||||||
|
|
||||||
|
s = lgetenv(less_is_more ? "MORE" : "LESS");
|
||||||
|
if (s != NULL)
|
||||||
|
- scan_option(save(s));
|
||||||
|
+ scan_option(s);
|
||||||
|
|
||||||
|
#define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0')
|
||||||
|
while (argc > 0 && (isoptstring(*argv) || isoptpending()))
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A text file browser similar to more, but better
|
Summary: A text file browser similar to more, but better
|
||||||
Name: less
|
Name: less
|
||||||
Version: 590
|
Version: 590
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv3+ or BSD
|
License: GPLv3+ or BSD
|
||||||
Source0: https://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
Source0: https://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||||
Source1: lesspipe.sh
|
Source1: lesspipe.sh
|
||||||
@ -18,6 +18,9 @@ Patch11: less-458-old-bot-in-help.patch
|
|||||||
# Backported version of upstream commit d21820c
|
# Backported version of upstream commit d21820c
|
||||||
# https://github.com/gwsw/less/commit/d21820c9d8501b5814d33d4fb8a621c6c563e102
|
# https://github.com/gwsw/less/commit/d21820c9d8501b5814d33d4fb8a621c6c563e102
|
||||||
Patch12: less-590-hyperlink-bleed.patch
|
Patch12: less-590-hyperlink-bleed.patch
|
||||||
|
# Backported version of upstream commit 31a14b8
|
||||||
|
# https://github.com/gwsw/less/commit/31a14b8124e551f9028c5a2785fbbcb5839c491d
|
||||||
|
Patch13: less-590-memory-leak.patch
|
||||||
URL: https://www.greenwoodsoftware.com/less/
|
URL: https://www.greenwoodsoftware.com/less/
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
@ -44,6 +47,7 @@ files, and you'll use it frequently.
|
|||||||
%patch10 -p1 -b .lesskey-usage
|
%patch10 -p1 -b .lesskey-usage
|
||||||
%patch11 -p1 -b .old-bot
|
%patch11 -p1 -b .old-bot
|
||||||
%patch12 -p1 -b .hyperlinks
|
%patch12 -p1 -b .hyperlinks
|
||||||
|
%patch13 -p1 -b .memory-leak
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -67,6 +71,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 25 2022 Daan De Meyer <daan.j.demeyer@gmail.com> - 590-5
|
||||||
|
- Backport patch from upstream to fix memory leak
|
||||||
|
|
||||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 590-4
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 590-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user