diff options
author | suz <suz@FreeBSD.org> | 2005-04-21 13:21:48 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2005-04-21 13:21:48 +0000 |
commit | 839093ebbc07113ea60c09bcdf3e880c9d06cf6d (patch) | |
tree | 9577bc579f9c0f1f55b4ae8ec79e4602b53a0627 /usr.sbin/faithd | |
parent | efa3870bbf778cdbd1259ae3d49489d628bdd985 (diff) | |
download | FreeBSD-src-839093ebbc07113ea60c09bcdf3e880c9d06cf6d.zip FreeBSD-src-839093ebbc07113ea60c09bcdf3e880c9d06cf6d.tar.gz |
plugged memory leak
Obtained from: KAME
MFC after: 2 days
Diffstat (limited to 'usr.sbin/faithd')
-rw-r--r-- | usr.sbin/faithd/ftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/faithd/ftp.c b/usr.sbin/faithd/ftp.c index 6ceb24d..c128fe0 100644 --- a/usr.sbin/faithd/ftp.c +++ b/usr.sbin/faithd/ftp.c @@ -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 @@ eprtparamfail: n = 0; if (n) write(src, sbuf, n); + freeaddrinfo(res); return n; } + freeaddrinfo(res); memcpy(&data6, res->ai_addr, res->ai_addrlen); goto sendport; |