Date: Fri, 14 Feb 2020 14:11:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 244123] libfetch: memory leak when processing multiple HTTP location response headers Message-ID: <bug-244123-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: chwoithe@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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244123-227>
