summaryrefslogtreecommitdiff
path: root/content/urldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/urldb.c')
-rw-r--r--content/urldb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/urldb.c b/content/urldb.c
index 975616cfb..7be508bef 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -1905,12 +1905,14 @@ struct path_data *urldb_find_url(nsurl *url)
tree = urldb_get_search_tree(host_str);
h = urldb_search_find(tree, host_str);
if (!h) {
+ lwc_string_unref(scheme);
return NULL;
}
/* generate plq (path, leaf, query) */
if (nsurl_get(url, NSURL_PATH | NSURL_QUERY, &plq, &len) !=
NSERROR_OK) {
+ lwc_string_unref(scheme);
return NULL;
}