From cf651672eb3f7aa609d53bec9c63c7f97c632c7b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 15 Oct 2022 11:18:19 -0700 Subject: [PATCH] common gv_fixLocale: fix unchecked allocation failure --- lib/common/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 94099265f..5f9a5ea8d 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -3985,7 +3985,7 @@ void gv_fixLocale (int set) if (set) { cnt++; if (cnt == 1) { - save_locale = strdup (setlocale (LC_NUMERIC, NULL)); + save_locale = gv_strdup(setlocale (LC_NUMERIC, NULL)); setlocale (LC_NUMERIC, "C"); } } -- 2.40.0