From: Sergio Villar Senin Date: Thu, 16 Jun 2011 14:56:50 +0000 (+0200) Subject: soup-session.c: reference leak in soup_session_prepare_for_uri X-Git-Tag: LIBSOUP_2_35_3~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd02576f84ea4916ad1a5781297b51449cf38cad;p=platform%2Fupstream%2Flibsoup.git 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 --- 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); } /**