[libsoup] soup-session.c: reference leak in soup_session_prepare_for_uri
- From: Sergio Villar Senin <svillar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-session.c: reference leak in soup_session_prepare_for_uri
- Date: Thu, 16 Jun 2011 15:06:35 +0000 (UTC)
commit dd02576f84ea4916ad1a5781297b51449cf38cad
Author: Sergio Villar Senin <svillar igalia com>
Date: Thu Jun 16 16:56:50 2011 +0200
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 files changed, 1 insertions(+), 0 deletions(-)
---
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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]