[libsoup] soup-auth: Fix use-after-free found by Coverity Scan and clang



commit 0e3b94131374dcccac42c85468a9974e55955d09
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 25 14:38:58 2018 +0200

    soup-auth: Fix use-after-free found by Coverity Scan and clang
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781771

 libsoup/soup-auth.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/libsoup/soup-auth.c b/libsoup/soup-auth.c
index 00aa405e..7abf6e1b 100644
--- a/libsoup/soup-auth.c
+++ b/libsoup/soup-auth.c
@@ -107,13 +107,9 @@ soup_auth_get_property (GObject *object, guint prop_id,
                g_value_set_string (value, soup_auth_get_scheme_name (auth));
                break;
        case PROP_REALM:
-               if (auth->realm)
-                       g_free (auth->realm);
                g_value_set_string (value, soup_auth_get_realm (auth));
                break;
        case PROP_HOST:
-               if (priv->host)
-                       g_free (priv->host);
                g_value_set_string (value, soup_auth_get_host (auth));
                break;
        case PROP_IS_FOR_PROXY:


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