summaryrefslogtreecommitdiff
path: root/content/fetchers/about.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchers/about.c')
-rw-r--r--content/fetchers/about.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index cb533bc54..ab5f1f6f0 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -586,6 +586,12 @@ static bool fetch_about_initialise(lwc_string *scheme)
error = lwc_intern_string(about_handler_list[abt_loop].name,
about_handler_list[abt_loop].name_len,
&about_handler_list[abt_loop].lname);
+ if (error != lwc_error_ok) {
+ while (abt_loop-- != 0) {
+ lwc_string_unref(about_handler_list[abt_loop].lname);
+ }
+ return false;
+ }
}
return true;