Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 14:21:09 GMT
From:      Momtchil Momtchev <momtchil.momtchev@netasq.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/72385: memory leak in libfetch
Message-ID:  <200410061421.i96EL9g3038831@www.freebsd.org>
Resent-Message-ID: <200410061430.i96EUQ4D061559@freefall.freebsd.org>

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


>Number:         72385
>Category:       misc
>Synopsis:       memory leak in libfetch
>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:   Wed Oct 06 14:30:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Momtchil Momtchev
>Release:        up to 5.3 BETA 6
>Organization:
NETASQ
>Environment:
FreeBSD garga.netasq.int 5.3-BETA5 FreeBSD 5.3-BETA5
>Description:
fetchGet() is leaking on HTTP 404 File Not Found
>How-To-Repeat:
fetchGet() is leaking on HTTP 404 File Not Found
>Fix:
                fetchFreeURL(url);
        if (purl)
                fetchFreeURL(purl);
-       if (conn != NULL)
-               _fetch_close(conn);
+       if (conn != NULL) {
+               if (conn->buf)
+                       free(conn->buf);
+               _fetch_close(conn);
+       }
>Release-Note:
>Audit-Trail:
>Unformatted:



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