From 2faffdd6286584dcf21b01092e87b0897fec2a6a Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Wed, 15 Jul 2015 11:57:51 +0200 Subject: [PATCH] 1182278 - bash crashes on `select' if REPLY is readonly 1241533,1224855 - bash memleak when LC_ALL set --- bash-4.3-memleak-lc_all.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bash-4.3-memleak-lc_all.patch diff --git a/bash-4.3-memleak-lc_all.patch b/bash-4.3-memleak-lc_all.patch new file mode 100644 index 0000000..77e86de --- /dev/null +++ b/bash-4.3-memleak-lc_all.patch @@ -0,0 +1,12 @@ +diff -up bash-4.3/locale.c.old bash-4.3/locale.c +--- bash-4.3/locale.c.old 2015-07-15 11:55:00.002857301 +0200 ++++ bash-4.3/locale.c 2015-07-15 11:48:36.698086257 +0200 +@@ -77,8 +77,6 @@ set_default_locale () + { + #if defined (HAVE_SETLOCALE) + default_locale = setlocale (LC_ALL, ""); +- if (default_locale) +- default_locale = savestring (default_locale); + #endif /* HAVE_SETLOCALE */ + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE);