bugGNU Wget - Bugs: bug #25298, Memory leak when issue HEAD

 
 

bug #25298: Memory leak when issue HEAD

Submitter:  Xin Zou <zouxin>
Submitted:  Sun 11 Jan 2009 09:12:36 AM UTC
   
 
Category:  Memory Leak Severity:  3 - Normal
Priority:  7 - High Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  trunk Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  1.12 Regression:  None
Work Required:  None Patch Included:  Yes
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Jun 2009 02:21:03 AM UTC, comment #1: 

Fixed in 9c501d15e3a0

Micah Cowan <micahcowan>
Sun 11 Jan 2009 09:12:36 AM UTC, original submission:  

For example
wget --no-proxy --timestamping http://www.google.com

Wget will issue HEAD first, but when returned from gethttp( in http.c), it didn't free "char *head" allocated by "read_http_response_head (sock)". So wget will leak at least 512bytes memory for each url.

Besides, there are several other potential memory leaks in http.c.
Attached patch tries to fix these bugs.

Xin Zou <zouxin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #17241:  leakhttp.patch added by zouxin (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by micahcowan (Updated the item)
  • -email is unavailable- added by zouxin (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-06-12 micahcowan StatusReady for Merge Fixed
        Open/ClosedOpen Closed
    2009-01-16 micahcowan Priority5 - Normal 7 - High
        StatusNone Ready for Merge
        PrivacyNone Public
        Planned ReleaseNone 1.12
    2009-01-11 zouxin Attached File- Added leakhttp.patch, #17241

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code