mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Plug memory leak.
PR: 27506
This commit is contained in:
parent
a892504995
commit
b554dea773
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77234
@ -418,13 +418,10 @@ _ftp_closefn(void *v)
|
||||
io->dir = -1;
|
||||
io->dsd = -1;
|
||||
DEBUG(fprintf(stderr, "Waiting for final status\n"));
|
||||
if ((r = _ftp_chkerr(io->csd)) != FTP_TRANSFER_COMPLETE)
|
||||
io->err = r;
|
||||
else
|
||||
io->err = 0;
|
||||
r = _ftp_chkerr(io->csd);
|
||||
close(io->csd);
|
||||
io->csd = -1;
|
||||
return io->err ? -1 : 0;
|
||||
free(io);
|
||||
return (r == FTP_TRANSFER_COMPLETE) ? 0 : -1;
|
||||
}
|
||||
|
||||
static FILE *
|
||||
|
Loading…
Reference in New Issue
Block a user