1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Don't return without freeing, in convert_all_links function.

This commit is contained in:
Micah Cowan 2007-12-05 23:05:53 -08:00
parent 5114aa2d07
commit 7dc476b700
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,8 @@
2007-12-05 Micah Cowan <micah@cowan.name>
* utils.c (subdir_p): Handle the case where d1 is "".
* convert.c (convert_all_links): Don't return without
deallocating timer.
2007-11-28 Micah Cowan <micah@cowan.name>

View File

@ -85,7 +85,7 @@ convert_all_links (void)
if (downloaded_html_set)
cnt = hash_table_count (downloaded_html_set);
if (cnt == 0)
return;
goto cleanup;
file_array = alloca_array (char *, cnt);
string_set_to_array (downloaded_html_set, file_array);
@ -166,9 +166,10 @@ convert_all_links (void)
}
secs = ptimer_measure (timer);
ptimer_destroy (timer);
logprintf (LOG_VERBOSE, _("Converted %d files in %s seconds.\n"),
file_count, print_decimal (secs));
cleanup:
ptimer_destroy (timer);
}
static void write_backup_file (const char *, downloaded_file_t);