https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244123

            Bug ID: 244123
           Summary: libfetch: memory leak when processing multiple HTTP
                    location response headers
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: b...@freebsd.org
          Reporter: chwoi...@yahoo.com

Created attachment 211646
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211646&action=edit
patch to libfetch

fetchMakeURL() or fetchParseURL() are used to create a new url struct when
processing a location header.  In the event that the HTTP response contains
multiple location headers, the previously allocated url is freed using free()
instead of fetchFreeURL().  This currently prevents the struct's "doc" member
from being freed.

Please find attached a patch to use fetchFreeURL().

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to