nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame SOURCES/bash-4.3-memleak-lc_all.patch

3fb13f
diff -up bash-4.3/locale.c.old bash-4.3/locale.c
3fb13f
--- bash-4.3/locale.c.old	2015-07-15 11:55:00.002857301 +0200
3fb13f
+++ bash-4.3/locale.c	2015-07-15 11:48:36.698086257 +0200
3fb13f
@@ -77,8 +77,6 @@ set_default_locale ()
3fb13f
 {
3fb13f
 #if defined (HAVE_SETLOCALE)
3fb13f
   default_locale = setlocale (LC_ALL, "");
3fb13f
-  if (default_locale)
3fb13f
-    default_locale = savestring (default_locale);
3fb13f
 #endif /* HAVE_SETLOCALE */
3fb13f
   bindtextdomain (PACKAGE, LOCALEDIR);
3fb13f
   textdomain (PACKAGE);