[Bug 244123] libfetch: memory leak when processing multiple HTTP location response headers
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 14 14:11:18 UTC 2020
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: bugs at FreeBSD.org
Reporter: chwoithe at 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.
More information about the freebsd-bugs
mailing list