From dd02576f84ea4916ad1a5781297b51449cf38cad Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Thu, 16 Jun 2011 16:56:50 +0200 Subject: [PATCH] soup-session.c: reference leak in soup_session_prepare_for_uri soup_session_prepare_for_uri() takes a reference to a SoupAddress that is never unref'ed. This could lead to big leaks. https://bugzilla.gnome.org/show_bug.cgi?id=652699 --- libsoup/soup-session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c index 0a7f7a3..78044bd 100644 --- a/libsoup/soup-session.c +++ b/libsoup/soup-session.c @@ -1805,6 +1805,7 @@ soup_session_prepare_for_uri (SoupSession *session, SoupURI *uri) soup_address_resolve_async (addr, priv->async_context, NULL, NULL, NULL); + g_object_unref (addr); } /** -- 2.7.4