diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2005-03-16 05:07:49 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2005-03-16 05:07:49 +0000 |
commit | ffd98f04e5d03561352c1b507b5a2c19b117210a (patch) | |
tree | d831ddea54db500f1710efa39701d2dff21a0d44 /usr.sbin/faithd/ftp.c | |
parent | ebea75358845fe912a0fa5185b592ef6762dce7e (diff) |
plug memory leak. Patrick Latifi
Diffstat (limited to 'usr.sbin/faithd/ftp.c')
-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 0334bf10584..bb7400ae158 100644 --- a/usr.sbin/faithd/ftp.c +++ b/usr.sbin/faithd/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.13 2003/09/02 23:35:44 itojun Exp $ */ +/* $OpenBSD: ftp.c,v 1.14 2005/03/16 05:07:48 itojun Exp $ */ /* $KAME: ftp.c,v 1.20 2002/09/08 01:12:30 itojun Exp $ */ /* @@ -835,11 +835,13 @@ eprtparamfail: n = 0; if (n) write(src, sbuf, n); + freeaddrinfo(res); return n; } memcpy(&data6, res->ai_addr, res->ai_addrlen); + freeaddrinfo(res); goto sendport; } else if (strcmp(cmd, "LPSV") == 0 && !param) { /* |