diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-28 17:38:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-12-28 17:38:18 +0000 |
commit | b0284d344889bdbd8657f9c5eaf1f890c6a482ff (patch) | |
tree | 3526c449407624fac39c754e0ea4d95a23d337f2 /libexec/ftpd | |
parent | fa5101347cd3d0db2a825dd43a1f54d468159dfa (diff) |
Fix memory leak with EPRT command; Hiroyuki YAMAMORI
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index b8c404050f1..de5c92594b1 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpcmd.y,v 1.27 2001/12/07 18:45:32 mpech Exp $ */ +/* $OpenBSD: ftpcmd.y,v 1.28 2001/12/28 17:38:17 millert Exp $ */ /* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */ /* @@ -47,7 +47,7 @@ #if 0 static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94"; #else -static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.27 2001/12/07 18:45:32 mpech Exp $"; +static char rcsid[] = "$OpenBSD: ftpcmd.y,v 1.28 2001/12/28 17:38:17 millert Exp $"; #endif #endif /* not lint */ @@ -237,6 +237,8 @@ cmd { if ($2) extended_port($4); + if ($4 != NULL) + free($4); } | PASV check_login_epsvall CRLF |