* src/ftp.c: Small cleanups

This commit is contained in:
Tim Rühsen 2022-01-22 19:51:02 +01:00
parent 35a6317b99
commit c984cb316a

View File

@ -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;
}