diff options
author | bitblt <bitblt@cvs.openbsd.org> | 1996-10-16 00:50:36 +0000 |
---|---|---|
committer | bitblt <bitblt@cvs.openbsd.org> | 1996-10-16 00:50:36 +0000 |
commit | bdd4fa6809d3bd31f8890df0ca821dcfd660042f (patch) | |
tree | 7da1e3f9fb10b8861192612dee7ed8a9cd9c6106 /libexec/ftpd/ftpcmd.y | |
parent | 4d68d235dee7a9c29626300d8177b37d67e3fd3d (diff) |
Fixed a memory leak associated with the HELP and SITE HELP commands.
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r-- | libexec/ftpd/ftpcmd.y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y index 4237278973d..da68aedae6e 100644 --- a/libexec/ftpd/ftpcmd.y +++ b/libexec/ftpd/ftpcmd.y @@ -359,6 +359,9 @@ cmd help(sitetab, (char *) 0); } else help(cmdtab, $3); + + if ($3 != NULL) + free ($3); } | NOOP CRLF { @@ -395,6 +398,9 @@ cmd | SITE SP HELP SP STRING CRLF { help(sitetab, $5); + + if ($5 != NULL) + free ($5); } | SITE SP UMASK check_login CRLF { |