soup-request-http: plug leak
authorXan Lopez <xan@igalia.com>
Sun, 1 Jan 2012 18:12:28 +0000 (19:12 +0100)
committerXan Lopez <xan@igalia.com>
Wed, 4 Jan 2012 19:59:43 +0000 (20:59 +0100)
The content type of the request is never freed.

https://bugzilla.gnome.org/show_bug.cgi?id=667099

libsoup/soup-request-http.c

index d4a2c20..e42a20a 100644 (file)
@@ -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);
 }