glib/tests/unicode: Cleanup allocated old locale if tests is skipped

This commit is contained in:
Marco Trevisan (Treviño) 2024-05-08 23:03:03 +02:00
parent 5c84823342
commit 19d7040047

View File

@ -525,6 +525,7 @@ test_turkish_strupdown (void)
if (oldlocale == NULL)
{
g_test_skip ("locale tr_TR not available");
g_free (old_lang);
return;
}