misc/72385: memory leak in libfetch
Momtchil Momtchev
momtchil.momtchev at netasq.com
Wed Oct 6 07:30:26 PDT 2004
>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:
More information about the freebsd-bugs
mailing list