summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-12 13:47:12 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-12 14:01:45 -0400
commitcca04f5edcbe6253dbcda922bd90b11f7746f050 (patch)
tree414bc2e8da1435cccd58ef6d63be8eacd5f8b390 /tests
parenta08172ea05b1ef3dbdfd3a35b66b802ee56a7473 (diff)
downloadpango-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.c2
-rw-r--r--tests/test-itemize.c2
-rw-r--r--tests/test-layout.c2
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);
}