From 4ac4f17be40d74aa997ba7b4691496cdcc8a2e84 Mon Sep 17 00:00:00 2001
From: liujian <liujianliu.liu@huawei.com>
Date: Mon, 31 May 2021 22:53:51 +0800
Subject: [PATCH] bash-4.3-memleak-lc_all

---
 locale.c | 2 --
 1 file changed, 2 deletions(-)

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

