[epiphany] Fix leak in ephy_uri_to_security_origin
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix leak in ephy_uri_to_security_origin
- Date: Wed, 27 Jun 2018 22:27:59 +0000 (UTC)
commit 3aae5258c08cd0f7a519f0325bbe07aa56fca760
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]