mirror of
https://github.com/mirror/wget.git
synced 2025-03-14 11:50:18 +08:00
* src/ftp.c: Small cleanups
This commit is contained in:
parent
35a6317b99
commit
c984cb316a
@ -2868,7 +2868,6 @@ delelement (struct fileinfo **f, struct fileinfo **start)
|
||||
xfree ((*f)->name);
|
||||
xfree ((*f)->linkto);
|
||||
xfree (*f);
|
||||
*f = NULL;
|
||||
|
||||
if (next)
|
||||
next->prev = prev;
|
||||
@ -2887,8 +2886,7 @@ freefileinfo (struct fileinfo *f)
|
||||
{
|
||||
struct fileinfo *next = f->next;
|
||||
xfree (f->name);
|
||||
if (f->linkto)
|
||||
xfree (f->linkto);
|
||||
xfree (f->linkto);
|
||||
xfree (f);
|
||||
f = next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user