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:
parent
5114aa2d07
commit
7dc476b700
@ -1,6 +1,8 @@
|
|||||||
2007-12-05 Micah Cowan <micah@cowan.name>
|
2007-12-05 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* utils.c (subdir_p): Handle the case where d1 is "".
|
* 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>
|
2007-11-28 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ convert_all_links (void)
|
|||||||
if (downloaded_html_set)
|
if (downloaded_html_set)
|
||||||
cnt = hash_table_count (downloaded_html_set);
|
cnt = hash_table_count (downloaded_html_set);
|
||||||
if (cnt == 0)
|
if (cnt == 0)
|
||||||
return;
|
goto cleanup;
|
||||||
file_array = alloca_array (char *, cnt);
|
file_array = alloca_array (char *, cnt);
|
||||||
string_set_to_array (downloaded_html_set, file_array);
|
string_set_to_array (downloaded_html_set, file_array);
|
||||||
|
|
||||||
@ -166,9 +166,10 @@ convert_all_links (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
secs = ptimer_measure (timer);
|
secs = ptimer_measure (timer);
|
||||||
ptimer_destroy (timer);
|
|
||||||
logprintf (LOG_VERBOSE, _("Converted %d files in %s seconds.\n"),
|
logprintf (LOG_VERBOSE, _("Converted %d files in %s seconds.\n"),
|
||||||
file_count, print_decimal (secs));
|
file_count, print_decimal (secs));
|
||||||
|
cleanup:
|
||||||
|
ptimer_destroy (timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void write_backup_file (const char *, downloaded_file_t);
|
static void write_backup_file (const char *, downloaded_file_t);
|
||||||
|
Loading…
Reference in New Issue
Block a user