- matches = strsav(matches, "<b>{");
- matches = strsav(matches, s);
- matches = strsav(matches, " }</b><br>\n<code>");
- matches = strsav(matches, b->url->spec);
- matches = strsav(matches, "</code><br>\n<br>\n");
- freez(s);
-
- merge_current_action(action, b->action);
+ if (s == NULL)
+ {
+ freez(url->dbuf);
+ freez(url->dvec);
+
+ free(url_param);
+ free(path);
+ free_current_action(action);
+ free_map(exports);
+ return JB_ERR_MEMORY;
+ }
+ string_append(&matches, "<b>{");
+ string_append(&matches, s);
+ string_append(&matches, " }</b><br>\n<code>");
+ string_append(&matches, b->url->spec);
+ string_append(&matches, "</code><br>\n<br>\n");
+ free(s);
+
+ merge_current_action(action, b->action); /* FIXME: Add error checking */