#1245233 - fixed memleak
This commit is contained in:
parent
2faffdd628
commit
f5eff725d5
24
bash-4.3-old-memleak.patch
Normal file
24
bash-4.3-old-memleak.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -up bash-4.3/subst.c.old bash-4.3/subst.c
|
||||||
|
--- bash-4.3/subst.c.old 2015-08-03 10:32:37.353490080 +0200
|
||||||
|
+++ bash-4.3/subst.c 2015-08-03 10:33:34.818533408 +0200
|
||||||
|
@@ -9492,7 +9492,7 @@ make_internal_declare (word, option)
|
||||||
|
char *word;
|
||||||
|
char *option;
|
||||||
|
{
|
||||||
|
- int t;
|
||||||
|
+ int t, r;
|
||||||
|
WORD_LIST *wl;
|
||||||
|
WORD_DESC *w;
|
||||||
|
|
||||||
|
@@ -9504,7 +9504,10 @@ make_internal_declare (word, option)
|
||||||
|
wl = make_word_list (w, (WORD_LIST *)NULL);
|
||||||
|
wl = make_word_list (make_word (option), wl);
|
||||||
|
|
||||||
|
- return (declare_builtin (wl));
|
||||||
|
+ r = declare_builtin (wl);
|
||||||
|
+
|
||||||
|
+ dispose_words (wl);
|
||||||
|
+ return r;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
@ -8,7 +8,7 @@
|
|||||||
Version: %{baseversion}%{patchleveltag}
|
Version: %{baseversion}%{patchleveltag}
|
||||||
Name: bash
|
Name: bash
|
||||||
Summary: The GNU Bourne Again shell
|
Summary: The GNU Bourne Again shell
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Group: System Environment/Shells
|
Group: System Environment/Shells
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Url: http://www.gnu.org/software/bash
|
Url: http://www.gnu.org/software/bash
|
||||||
@ -137,6 +137,9 @@ Patch137: bash-4.3-select-readonly.patch
|
|||||||
#1241533,1224855 - bash leaks memory when LC_ALL set
|
#1241533,1224855 - bash leaks memory when LC_ALL set
|
||||||
Patch138: bash-4.3-memleak-lc_all.patch
|
Patch138: bash-4.3-memleak-lc_all.patch
|
||||||
|
|
||||||
|
#1245233 - old memleak reappeared, taken from upstream
|
||||||
|
Patch139: bash-4.3-old-memleak.patch
|
||||||
|
|
||||||
BuildRequires: texinfo bison
|
BuildRequires: texinfo bison
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: autoconf, gettext
|
BuildRequires: autoconf, gettext
|
||||||
@ -235,6 +238,7 @@ This package contains documentation files for %{name}.
|
|||||||
%patch136 -p0 -b .memleak
|
%patch136 -p0 -b .memleak
|
||||||
%patch137 -p1 -b .readonly
|
%patch137 -p1 -b .readonly
|
||||||
%patch138 -p1 -b .lc_all
|
%patch138 -p1 -b .lc_all
|
||||||
|
%patch139 -p1 -b .oldleak
|
||||||
|
|
||||||
echo %{version} > _distribution
|
echo %{version} > _distribution
|
||||||
echo %{release} > _patchlevel
|
echo %{release} > _patchlevel
|
||||||
@ -433,6 +437,9 @@ end
|
|||||||
%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
|
%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 03 2015 Ondrej Oprala - 4.3.39-6
|
||||||
|
- #1245233 - fixed memleak
|
||||||
|
|
||||||
* Wed Jul 15 2015 Ondrej Oprala - 4.3.39-5
|
* Wed Jul 15 2015 Ondrej Oprala - 4.3.39-5
|
||||||
- #1182278 - bash crashes on `select' if REPLY is readonly
|
- #1182278 - bash crashes on `select' if REPLY is readonly
|
||||||
- #1241533,1224855 - bash memleak when LC_ALL set
|
- #1241533,1224855 - bash memleak when LC_ALL set
|
||||||
|
Loading…
Reference in New Issue
Block a user