Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2001 01:16:50 -0800 (PST)
From:      Hiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/33268: ftpd: memory leak at EPRT
Message-ID:  <200112280916.fBS9Go592203@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         33268
>Category:       bin
>Synopsis:       ftpd: memory leak at EPRT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 28 01:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hiroyuki YAMAMORI
>Release:        
>Organization:
>Environment:
>Description:
Not free EPRT arg.
>How-To-Repeat:

>Fix:
--- src/libexec/ftpd/ftpcmd.y_1.28      Fri Dec 28 17:53:10 2001
+++ src/libexec/ftpd/ftpcmd.y   Fri Dec 28 17:56:02 2001
@@ -313,7 +313,9 @@
                        if (port_check_v6("EPRT") == 1)
                                goto eprt_done;
 #endif
-               eprt_done:;
+               eprt_done:
+                       if ($4 != NULL)
+                               free($4);
                }
        | PASV check_login CRLF
                {

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112280916.fBS9Go592203>