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 committed by Philip Withnall
parent e4d369d5f4
commit a2111bec69
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

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;
}