From f22b50660751fbf4cf9fc22384fdbef6323205cc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 25 May 2011 08:12:27 +0300 Subject: [PATCH] * test-mu-cmd.c, test-mu-contacts.c: fix tiny leaks in test cases --- src/tests/test-mu-cmd.c | 4 +++- src/tests/test-mu-contacts.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/test-mu-cmd.c b/src/tests/test-mu-cmd.c index 1c2172cd..c2a009df 100644 --- a/src/tests/test-mu-cmd.c +++ b/src/tests/test-mu-cmd.c @@ -379,7 +379,8 @@ test_mu_extract_by_name (void) g_assert (g_mkdir_with_parents (tmpdir, 0700) == 0); cmdline = g_strdup_printf ("%s extract --muhome=%s " - "--target-dir=%s %s%cFoo%ccur%cmail5 sittingbull.jpg", + "--target-dir=%s %s%cFoo%ccur%cmail5 " + "sittingbull.jpg", MU_PROGRAM, tmpdir, tmpdir, MU_TESTMAILDIR2, G_DIR_SEPARATOR, G_DIR_SEPARATOR, G_DIR_SEPARATOR); @@ -390,6 +391,7 @@ test_mu_extract_by_name (void) path = g_strdup_printf ("%s%c%s", tmpdir, G_DIR_SEPARATOR, "sittingbull.jpg"); g_assert (access (path, F_OK) == 0); + g_free (path); g_free (erroutput); g_free (output); diff --git a/src/tests/test-mu-contacts.c b/src/tests/test-mu-contacts.c index 990d57f9..695feb26 100644 --- a/src/tests/test-mu-contacts.c +++ b/src/tests/test-mu-contacts.c @@ -159,6 +159,8 @@ test_mu_contacts_01 (void) g_slist_foreach (clist, (GFunc)contact_destroy, NULL); g_slist_free (clist); + + mu_contacts_destroy (contacts); g_free (contactsfile); g_free (muhome);