[gnc-locale-utils.cpp] don't need to strdup locale

it's not freed later
This commit is contained in:
Christopher Lam committed 2026-01-03 14:17:16 +08:00
1 parent be46171d02
commit 65d573889b
1 file changed
+1 -1
+1 -1
View File
@@ -95,7 +95,7 @@ gnc_init_boost_locale (const std::string& messages_path)
}
catch (const std::runtime_error& err)
{
char* locale = g_strdup(setlocale(LC_ALL, ""));
const char* locale = setlocale(LC_ALL, "");
g_log(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
"Failed to create C++ default locale from"