plugged memory leak

Obtained from: KAME
MFC after: 2 days
This commit is contained in:
SUZUKI Shinsuke 2005-04-21 13:21:48 +00:00
parent f2da7e0e49
commit 3b90d87b22

View File

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