bash/bash-4.3-memleak-lc_all.patch

26 lines
617 B
Diff
Raw Permalink Normal View History

2021-05-31 20:38:12 +08:00
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
2023-07-17 17:08:56 +08:00
index fabf7b1..d3f2665 100644
2021-05-31 20:38:12 +08:00
--- a/locale.c
+++ b/locale.c
2023-07-17 17:08:56 +08:00
@@ -80,8 +80,6 @@ set_default_locale ()
2019-09-30 10:32:12 -04:00
{
#if defined (HAVE_SETLOCALE)
default_locale = setlocale (LC_ALL, "");
- if (default_locale)
- default_locale = savestring (default_locale);
2021-05-31 20:38:12 +08:00
#else
default_locale = savestring ("C");
2019-09-30 10:32:12 -04:00
#endif /* HAVE_SETLOCALE */
2021-05-31 20:38:12 +08:00
--
2023-07-17 17:08:56 +08:00
2.33.0
2021-05-31 20:38:12 +08:00