]> sjero.net Git - wget/blobdiff - src/html-url.c
[svn] Committed memory debugging stuff.
[wget] / src / html-url.c
index dd59f18df0aedb6ced483dea046addb29d41412d..5d37cf0ad981f0690611812a49fbb67430670ecb 100644 (file)
@@ -416,7 +416,7 @@ collect_tags_mapper (struct taginfo *tag, void *arg)
            if (!newbase)
              break;
            if (closure->base)
-             free (closure->base);
+             xfree (closure->base);
            if (closure->parent_base)
              closure->base = url_concat (closure->parent_base, newbase);
            else
@@ -566,3 +566,10 @@ get_urls_html (const char *file, const char *this_url, int dash_p_leaf_HTML,
   read_file_free (fm);
   return closure.head;
 }
+
+void
+cleanup_html_url (void)
+{
+  FREE_MAYBE (interesting_tags);
+  FREE_MAYBE (interesting_attributes);
+}