rcolebaugh / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame bash-4.3-memleak-lc_all.patch

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