[pango/more-test-coverage2: 2/15] Fix a memory leak




commit 0ece854601c7911976b4a2349d5a44d984723907
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 6 14:44:52 2021 -0400

    Fix a memory leak

 tests/test-break.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index 51074d80..a3930937 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -342,6 +342,8 @@ main (int argc, char *argv[])
           string = g_string_sized_new (0);
           test_file (argv[1], string);
           g_print ("%s", string->str);
+
+          g_string_free (string, TRUE);
         }
 
       return 0;


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