[libsoup] soup-request-http: plug leak



commit 78382ce5e41e26d51126ccf38181408f90dfab2f
Author: Xan Lopez <xan igalia com>
Date:   Sun Jan 1 19:12:28 2012 +0100

    soup-request-http: plug leak
    
    The content type of the request is never freed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667099

 libsoup/soup-request-http.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-request-http.c b/libsoup/soup-request-http.c
index d4a2c20..e42a20a 100644
--- a/libsoup/soup-request-http.c
+++ b/libsoup/soup-request-http.c
@@ -72,6 +72,8 @@ soup_request_http_finalize (GObject *object)
 	if (http->priv->msg)
 		g_object_unref (http->priv->msg);
 
+	g_free (http->priv->content_type);
+
 	G_OBJECT_CLASS (soup_request_http_parent_class)->finalize (object);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]