plugged memory leak
Obtained from: KAME MFC after: 2 days
This commit is contained in:
parent
f2da7e0e49
commit
3b90d87b22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145357
@ -1,4 +1,4 @@
|
||||
/* $KAME: ftp.c,v 1.23 2003/08/19 21:20:33 itojun Exp $ */
|
||||
/* $KAME: ftp.c,v 1.24 2005/03/16 05:05:48 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997 and 1998 WIDE Project.
|
||||
@ -967,9 +967,11 @@ ftp_copycommand(int src, int dst, enum state *state)
|
||||
n = 0;
|
||||
if (n)
|
||||
write(src, sbuf, n);
|
||||
freeaddrinfo(res);
|
||||
return n;
|
||||
}
|
||||
|
||||
freeaddrinfo(res);
|
||||
memcpy(&data6, res->ai_addr, res->ai_addrlen);
|
||||
|
||||
goto sendport;
|
||||
|
Loading…
Reference in New Issue
Block a user