summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-09-14 08:24:36 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-09-14 08:29:45 -0400
commit2b4f798e34f3da3f1200504b4658d3206b80ee11 (patch)
treecdc2f57513cee06451adc1daed3d6b8cccaaee96
parentcda5d2daddefc563f5b52af6daa56903b0b07214 (diff)
downloadgtk+-test-leak-fixes.tar.gz
testsuite: Fix a few memory leakstest-leak-fixes
These are keeping the asan build in ci from passing.
-rw-r--r--testsuite/gtk/fnmatch.c2
-rw-r--r--testsuite/gtk/texthistory.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/gtk/fnmatch.c b/testsuite/gtk/fnmatch.c
index e16bdae016..25bbc7b0e6 100644
--- a/testsuite/gtk/fnmatch.c
+++ b/testsuite/gtk/fnmatch.c
@@ -165,12 +165,14 @@ main (int argc, char *argv[])
{
char *path = g_strdup_printf ("/fnmatch/test%d", i);
g_test_add_data_func (path, &tests[i], test_fnmatch);
+ g_free (path);
}
for (int i = 0; i < G_N_ELEMENTS (citests); i++)
{
char *path = g_strdup_printf ("/ci-glob/test%d", i);
g_test_add_data_func (path, &citests[i], test_ci_glob);
+ g_free (path);
}
return g_test_run ();
diff --git a/testsuite/gtk/texthistory.c b/testsuite/gtk/texthistory.c
index c64c803083..cca4008196 100644
--- a/testsuite/gtk/texthistory.c
+++ b/testsuite/gtk/texthistory.c
@@ -602,6 +602,8 @@ test14 (void)
run_test (commands, G_N_ELEMENTS (commands), 0);
g_free (fill);
+ g_free (fill_after);
+ g_free (fill_after_2);
}
int