Patches for check_http leaks memory for pages larger than buffer [sf#2957455] [#1037]