tests: Fix a minor leak in the unicode-normalize test

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Coverity CID: #1487904
This commit is contained in:
Philip Withnall 2022-04-14 13:26:25 +01:00
parent d987146fe1
commit 41fcb33034

View File

@ -127,7 +127,10 @@ test_unicode_normalize (void)
columns = g_strsplit (buffer->str, ";", -1); columns = g_strsplit (buffer->str, ";", -1);
if (!columns[0]) if (!columns[0])
{
g_strfreev (columns);
goto next; goto next;
}
process_one (line, columns); process_one (line, columns);
g_strfreev (columns); g_strfreev (columns);