[libsoup] cache-test: Fix leak
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] cache-test: Fix leak
- Date: Wed, 25 Nov 2020 21:25:53 +0000 (UTC)
commit c55a08659e4d60b602829d6594e61ec220a318ab
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed Nov 25 15:23:01 2020 -0600
cache-test: Fix leak
tests/cache-test.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/tests/cache-test.c b/tests/cache-test.c
index ce0a077b..361d1136 100644
--- a/tests/cache-test.c
+++ b/tests/cache-test.c
@@ -594,12 +594,14 @@ do_refcounting_test (gconstpointer data)
soup_cache_flush ((SoupCache *)soup_session_get_feature (session, SOUP_TYPE_CACHE));
+ g_object_unref (cache);
+ g_free (cache_dir);
+
g_test_skip ("FIXME: Session has 1 ref at the end, SessionAsync had a different clear_message
function with different semantics.");
+
return;
- soup_test_session_abort_unref (session);
- g_object_unref (cache);
- g_free (cache_dir);
+ soup_test_session_abort_unref (session);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]