From 19d704004746bac1b2bb04d2051b820b7438d30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 8 May 2024 23:03:03 +0200 Subject: [PATCH] glib/tests/unicode: Cleanup allocated old locale if tests is skipped --- glib/tests/unicode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/tests/unicode.c b/glib/tests/unicode.c index e91425aa7..cb74068a5 100644 --- a/glib/tests/unicode.c +++ b/glib/tests/unicode.c @@ -525,6 +525,7 @@ test_turkish_strupdown (void) if (oldlocale == NULL) { g_test_skip ("locale tr_TR not available"); + g_free (old_lang); return; }