diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-12 13:47:12 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-12 14:01:45 -0400 |
commit | cca04f5edcbe6253dbcda922bd90b11f7746f050 (patch) | |
tree | 414bc2e8da1435cccd58ef6d63be8eacd5f8b390 /tests | |
parent | a08172ea05b1ef3dbdfd3a35b66b802ee56a7473 (diff) | |
download | pango-cca04f5edcbe6253dbcda922bd90b11f7746f050.tar.gz |
tests: Fix memory leaks
These were showing up as errors from lsan.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-break.c | 2 | ||||
-rw-r--r-- | tests/test-itemize.c | 2 | ||||
-rw-r--r-- | tests/test-layout.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-break.c b/tests/test-break.c index db944fbb..0773e5d2 100644 --- a/tests/test-break.c +++ b/tests/test-break.c @@ -294,9 +294,9 @@ test_break (gconstpointer d) g_test_fail (); g_strfreev (lines); - g_free (diff); } + g_free (diff); g_string_free (dump, TRUE); g_free (expected_file); } diff --git a/tests/test-itemize.c b/tests/test-itemize.c index cd145e40..b22f3c2f 100644 --- a/tests/test-itemize.c +++ b/tests/test-itemize.c @@ -277,9 +277,9 @@ test_itemize (gconstpointer d) g_test_fail (); g_strfreev (lines); - g_free (diff); } + g_free (diff); g_string_free (dump, TRUE); g_free (expected_file); } diff --git a/tests/test-layout.c b/tests/test-layout.c index 2cbdc042..5362d6fc 100644 --- a/tests/test-layout.c +++ b/tests/test-layout.c @@ -347,9 +347,9 @@ test_layout (gconstpointer d) g_test_fail (); g_strfreev (lines); - g_free (diff); } + g_free (diff); g_string_free (dump, TRUE); g_free (expected_file); } |