diff -ru libsoup2.4-2.4.1/tests/context-test.c libsoup2.4-2.4.1.patched/tests/context-test.c
--- libsoup2.4-2.4.1/tests/context-test.c	2008-09-30 11:44:45.000000000 +0000
+++ libsoup2.4-2.4.1.patched/tests/context-test.c	2008-09-30 11:43:00.000000000 +0000
@@ -241,6 +241,11 @@
 	g_object_unref (msg);
 
 	soup_session_abort (session);
+	if (G_OBJECT(session)->ref_count > 1) {
+		debug_printf (1, "   Session refcount is too high after abort: %u",
+			      G_OBJECT(session)->ref_count);
+		errors++;
+	}
 	g_object_unref (session);
 	g_free (uri);

