Re: [Bug-wget] Two fixes: Memory leak with chunked responses / Chunked responses and WARC files

2012-01-28 Thread Giuseppe Scrivano
hey, thanks for your patches. I have pushed them. Cheers, Giuseppe Gijs van Tulder gvtul...@gmail.com writes: Hi, Here are two small patches. I hope they will be useful. First, a patch that fixes a memory leak in fd_read_body (src/retr.c) and skip_short_body (src/http.c) when it

[Bug-wget] Two fixes: Memory leak with chunked responses / Chunked responses and WARC files

2012-01-27 Thread Gijs van Tulder
Hi, Here are two small patches. I hope they will be useful. First, a patch that fixes a memory leak in fd_read_body (src/retr.c) and skip_short_body (src/http.c) when it retrieves a response with Transfer-Encoding: chunked. Both functions make calls to fd_read_line but never free the result.