"Phill Bertolus" <[EMAIL PROTECTED]> writes: > Hi guys, > > in http.c there are a couple of lines that say > > if (opt.save_headers) > fwrite(head,1,strlen(head), fp); > > Unfortunately head has been deallocated by this time in 1.10. The > 1.9.1 version correctly saved the head info in to the heap > temporarily if opt.save_headers was on.
Thanks for the report. The bug should be fixed in 1.10.1, patch being available at http://article.gmane.org/gmane.comp.web.wget.patches/1316 > This code (the 1.9.1 code) needs to be reinstated. No need to reinstate old code, it is enough to just free head later in the code, as the above patch does.
