rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

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

b92f7d
diff --git a/locale.c b/locale.c
b92f7d
index 17ccc58..a6c07a3 100644
b92f7d
--- a/locale.c
b92f7d
+++ b/locale.c
b92f7d
@@ -78,8 +78,6 @@ set_default_locale ()
b92f7d
 {
b92f7d
 #if defined (HAVE_SETLOCALE)
b92f7d
   default_locale = setlocale (LC_ALL, "");
b92f7d
-  if (default_locale)
b92f7d
-    default_locale = savestring (default_locale);
b92f7d
 #else
b92f7d
   default_locale = savestring ("C");
b92f7d
 #endif /* HAVE_SETLOCALE */