[libsoup/gnome-3-28] soup-auth: Fix use-after-free found by Coverity Scan and clang
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/gnome-3-28] soup-auth: Fix use-after-free found by Coverity Scan and clang
- Date: Mon, 25 Jun 2018 12:41:43 +0000 (UTC)
commit 9fc0ae2de74a1b675e6bbe8cb51f9dd3dd3dbb06
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]