[epiphany/gnome-3-28] Fix leak in ephy_uri_to_security_origin



commit b8cc05259034138aa516a4fa820e7bbd95eb9623
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Jun 27 17:26:17 2018 -0500

    Fix leak in ephy_uri_to_security_origin

 lib/ephy-uri-helpers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c
index 021ab07ab..bb4fef3b0 100644
--- a/lib/ephy-uri-helpers.c
+++ b/lib/ephy-uri-helpers.c
@@ -515,5 +515,6 @@ ephy_uri_to_security_origin (const char *uri_string)
   result = webkit_security_origin_to_string (origin);
   webkit_security_origin_unref (origin);
 
-  return result != NULL ? g_strdup (result) : NULL;
+  /* May be NULL. */
+  return result;
 }


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