[glib: 1/2] tests: Fix a minor leak in the unicode-normalize test




commit 41fcb330341993e764495cdef6d4f516624696ed
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Apr 14 13:26:25 2022 +0100

    tests: Fix a minor leak in the unicode-normalize test
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Coverity CID: #1487904

 glib/tests/unicode-normalize.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/unicode-normalize.c b/glib/tests/unicode-normalize.c
index 52426be43a..2a594c63e7 100644
--- a/glib/tests/unicode-normalize.c
+++ b/glib/tests/unicode-normalize.c
@@ -127,7 +127,10 @@ test_unicode_normalize (void)
 
       columns = g_strsplit (buffer->str, ";", -1);
       if (!columns[0])
-       goto next;
+        {
+          g_strfreev (columns);
+          goto next;
+        }
 
       process_one (line, columns);
       g_strfreev (columns);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]